uniapp调试关闭跨域 mac
2020-06-24 本文已影响0人
李科震
6. uniapp调试关闭跨域:
open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/dijun/chrome
注:
①. 创建一个文件夹,用来保存关闭安全策略后的用户信息的.如/Users/dijun/chrome.
②. 第一次打开chrome有黄色背景色的"--disable-web-security”相关的提示,说明浏览器设置跨域成功.