各大浏览器本地实现跨域模式
文章目录
chrome
mac系统
1.彻底关闭chrome浏览器,从程序坞中右击彻底关闭。
2.打开终端输入一下命令
open -n -a /Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --args --user-data-dir="/tmp/chrome\_dev\_test" --disable-web-security

firefox
安装 "CORS Everywhere"扩展程序

safari
1.safari -> 偏好设置 -> 高级 -> 选中“在菜单中显示’开发‘菜单”

2.在“开发”菜单中选中“停止跨源限制”

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论