javascript - Please tell me how to embed the page content on the server in a local HTML page in a DIV? No need for iframe.
阿神2017-07-05 10:40:37
0
3
871
报错信息如下: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.
Needs cross-domain~~
https://blog.codefun.cn/blog/...
The server you want to nest depends on whether you have permission.
Just turn on access-Control-Allow-Origin
Used PHP as an example
Provide several ideas:
1) Back-end rendering
2) Use
Refer to the official website:
https://msdn.microsoft.com/en...
3) Use
4)
Reference: https://developer.mozilla.org...