Safari iOS not loading Javascript file?

前端 未结 2 1823
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 17:51

I have just upgraded my iOS because of the recent security bug, and I find that my website is no longer loading properly on my phone!

I\'ve boiled the problem down t

2条回答
  •  难免孤独
    2020-12-20 18:25

    Had the same issue (iOS 9.3.3 Safair/Chrome and on OSX with Safari 9.1.2).

    The reason was that we used a javascript library to try to load retina versions of all our images. Somehow the request sent using HTTP/0.9 and not HTTP/1.1 which made Safari automatically sandbox the whole page on all following requests (the error message said something like "automatically sandboxed ... because of HTTP/0.9"). The security changelog of iOS 9.3.3 (https://support.apple.com/en-us/HT206902) mentions something related under CVE-2016-4651.

    Make sure your web server supports HTTP/1.1 and that you request the page using HTTP/1.1

提交回复
热议问题