LoginSignup
3
0

More than 3 years have passed since last update.

iPhoneでリンクが開かない。Failed to load resource: The operation couldn’t be completed. Protocol error

Last updated at Posted at 2019-08-15

amazon-linux-extrasを使用してhttpdを入れ、ALBを使用するとiPhoneでエラーになる

iPhoneのシミュレータを使用して、ローカル環境と接続しデバッグすると表示されるエラー。

Failed to load resource: The operation couldn’t be completed. Protocol error

ALBの設定を変更する回避方法

スクリーンショット 2019-08-15 13.58.12.png

ALBの設定で、HTTP/2が有効になっているのを外す。

Apacheの設定を変更する回避方法

/etc/httpd/conf.modules.d/10-h2.conf
# LoadModule http2_module modules/mod_http2.so
sudo systemctl restart httpd

まとめ

Apacheのほうで設定するほうが、HTTP2の恩恵を受けれるものが多いのでそちらのほうがいいかもしれません。
また、その方法だけだとうまくいかない場合、ALBの設定変更の方法を手元の環境では試しています。

3
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
3
0