报错信息如下:XMLHttpRequest cannot load http://172.31.71.33/a/mobile/... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63343' is therefore not allowed access.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
需要跨域~~
https://blog.codefun.cn/blog/...
你想要嵌套的那个服务器,得看你有没有权限。
只要开启access-Control-Allow-Origin即可
已PHP为例子
提供几种思路:
1)后端渲染
2)使用
参考官网:
https://msdn.microsoft.com/en...
3)使用
4)
<link rel="import" href="myfile.html">参考:https://developer.mozilla.org...