Access to XMLHttpRequest at 'https://www.xxxx.com/index.php/Ios/Banner/index' from origin 'http://www.xxxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
index.html#/:1 Access to XMLHttpRequest at 'https://www.xxxx.com/index.php/Ios/News/newsokindex?onzhcn=cn' from origin 'http://www.xxxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
index.html#/:1 Access to XMLHttpRequest at 'https://www.xxxx.com/index.php/Ios/Banner/gonggao' from origin 'http://www.xxxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
提示这样 不知道怎么解决呢
4 个回复
jtshushu (作者) - 擅长:PHP-Thinkphp Python MUI UniApp Vuejs Bootstrap Jq Logo设计 广告设计 网页设计 有项目上需要联系我微信号:jtshushu66
原因是 http:// 都要改成 https://
香蕉不是笨啦啦 - 哈哈哈
同源策略限制吧
jtshushu (作者) - 擅长:PHP-Thinkphp Python MUI UniApp Vuejs Bootstrap Jq Logo设计 广告设计 网页设计 有项目上需要联系我微信号:jtshushu66
我改成了 https://可以了
2***@qq.com
如果只使用http,如何解决?