SECURITY_ERR: DOM Exception 18 ONLY IN Safari

2019-05-15 00:16发布

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条回答
来,给爷笑一个
2楼-- · 2019-05-15 00:54

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

查看更多
登录 后发表回答