【发布时间】:2020-06-03 07:29:57
【问题描述】:
Access to XMLHttpRequest at 'https://www.google.com/' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
我可以使用 jquery.load 将其他网站的 html 导入到 div 中吗?
【问题讨论】:
-
如果其他站点允许跨站点共享,您可以。否则,您可能必须将其他站点加载到
IFrame
标签: javascript jquery cors