SECURITY_ERR:DOM 异常 18 仅在 Safari 中
我有两个服务器(prod.example.com 和 img.example.com),
所以在“prod”上,我使用 FF 和 Chrome 中的画布处理来自“img”的图像,
一切正常
,但在 Safari 中我得到了这个 SECURITY_ERR: DOM异常 18:试图突破用户代理的安全策略。
来自“img”的所有图像在标头中都有 Access-Control-Allow-Origin:*
那么在哪里帕德拉?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您尝试从一台主机访问另一台主机,您可能调用的
getImageData
将会引发此问题。您无法解决此问题,解决此问题的唯一方法是将代理从 img.example.com 代理到 prod.example.comgetImageData
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