谷歌浏览器(chrome)允许跨域/允许https网站中发送http请求
直接上方法了
方法一(针对所有访问网站)
第一步:对谷歌浏览器图标点击鼠标右键,打开属性面板

第二步:在下图位置,添加下列代码
原来启动浏览器的地址:C:\Users\xxxxx\AppData\Local\Google\Chrome\Application\chrome.exe
增加的代码(注意开头是有个空格的,要把两部分用空格隔开的): --args --disable-web-security --user-data-dir="d:/chromecache" --allow-running-insecure-content
C:\Users\xxxxx\AppData\Local\Google\Chrome\Application\chrome.exe --args --disable-web-security --user-data-dir="d:/chromecache" --allow-running-insecure-content

第三步:应用以后打开就好了
方法二(针对单一网站)
第一步:点击浏览器地址左边的锁的图标

2. 点击后,在弹窗里面选择网站设置

3. 打开网站设置后,将不安全内容选项改成允许即可。

注意:这只是针对单独的网站设置的,如果需要多网站,需要对每个网站单独设置。
方法二:
在html的header中加入 (未验证)
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">