--user-data-dir
的xxx
替换成Mac
用户名,然后执行下面的命令,打开一个新的chrome
浏览器open -na Google\ Chrome --args --disable-web-security --disable-site-isolation-trials --user-data-dir="/Users/xxx/Desktop/chrome_dev"
chrome://flags/#unsafely-treat-insecure-origin-as-secure
Enable
它,填好要连接的http
网站地址Relunch
按钮================
解决mixed content
问题:
chrome
浏览器配置Site settings -->Insecure content --> allow
--allow-running-insecure-content
mixed content
错误,但是css
,js
已经能够加载了chrome://flags/#unsafely-treat-insecure-origin-as-secure
Enable
它,填好要连接的http
网站地址参考: https://stackoverflow.com/questions/35432749/disable-web-security-in-chrome-48