问题
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