在Safari中禁用同源策略

在Safari中禁用同源策略

问题描述:

出于开发目的,我需要在我的计算机上的Safari(在Windows上)禁用同源策略。

For development purposes, I need to disable the same-origin policy in Safari (on Windows) on my machine.

在Chrome中,可以通过启动带有 - disable-web-security 标志。

In Chrome, this can be done by launching with the flag --disable-web-security. Is there an equivalent flag or hidden setting in Safari?

如果您运行的是OSX Lion(Safari 6.0)需要启用开发人员菜单,并从开发菜单中选择禁用本地文件限制。

If you are running OSX Lion (Safari 6.0), then you only need to enable the developer menu, and select "Disable local file restrictions" from the develop menu.