2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LINE Imagemap「Unable to load image」の罠

Posted at

LINEのMessaging APIにてimagemapをいじっていたら表題の罠にハマったので備忘録として共有。

baseUrlの末尾に/をつけるな

上記に尽きるのですが、何が罠かって環境によってはbaseUrlの末尾に/があっても画像にアクセスできてしまう

環境 末尾に/あり 末尾に/なし
iOS版 ×(unable)
android版

PCやiPadでの挙動は未確認ですし、LINEのバージョンまでは確認しておりませんが、同様の事象でお困りの方もいると思うのでとりあえず共有だけしておくことにします。
というわけで、imagemapのbaseUrl末尾に/をつけるな。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?