header is present on the requested resource. Origin 'null' is therefore not allowed access.

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.解决方案 1,如果请求的url是PHP页面,则需要在PHP页面中添加代码:header("Access-Control-Allow-Origin: *"
相关文章
相关标签/搜索