SECURITY_ERR: DOM Exception 18 ONLY IN Safari

痞子三分冷 提交于 2020-01-02 08:30:08

问题


i got two servers (prod.example.com and img.example.com)

so on "prod" i process images from "img" using canvas

in FF and Chrome all is Ok

but in Safari i got this SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

all images from "img" has Access-Control-Allow-Origin:* in headers

so where is padla?


回答1:


getImageData which you probably call will raise this if you try to access the one host from the other. You cannot go around this, the only way around it would be to proxy from img.example.com to prod.example.com



来源:https://stackoverflow.com/questions/9299120/security-err-dom-exception-18-only-in-safari

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