在Safari中禁用同源策略 [英] Disabling same-origin policy in Safari

查看:147
本文介绍了在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.

这篇关于在Safari中禁用同源策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆