Remove CORS Accept-Encoding header on Safari

…衆ロ難τιáo~ 提交于 2019-12-06 07:03:30

问题


I made a javascript bookmarklet which accesses byte-shuffled images (whence I make ArrayBuffer CORS) on a publicly shared google-drive folder. Works great on Firefox, Chrome, Opera, and even Safari 5.something (I run on windows).

However, one user told me it didn't work on Safari 7.0.3 (and I don't know if it works in Safari 6.something).

From what I understand the request cannot load because Safari adds an "Accept-Encoding" into the preflight, while google's Access-Control-Allow-Headers doesn't mention this header.

Since I don't think I can alter myself google's Access-Control-Allow-Headers, is it possible to nullify this header on the browser's side? (specifically, on Safari's side ^^). I can't test that myself, that's why I ask here.

来源:https://stackoverflow.com/questions/24175638/remove-cors-accept-encoding-header-on-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!