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: *"
相關文章
相關標籤/搜索