3

我有两台服务器(prod.example.com 和 img.example.com)

等等“prod”我使用画布处理来自“img”的图像

在 FF 和 Chrome 中一切正常

但在 Safari 中我得到了这个SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

“img”中的所有图像都Access-Control-Allow-Origin:*在标题中

那么帕德拉在哪里?

4

1 回答 1

2

getImageData如果您尝试从另一台主机访问一个主机,您可能会调用它。你不能绕过这个,唯一的办法就是从 img.example.com 代理到 prod.example.com

于 2012-02-15T18:35:51.690 回答