MkyTaP - 開發筆記
主要工具: Linux, Python, SQL
Friday, November 23, 2018
Error: No 'Access-Control-Allow-Origin' header is present on the requested resource.
在PHP接受請求後修改header,防止信息被瀏覽器擋著︰
<?php header('Access-Control-Allow-Origin: *'); ?>
Referense:
Why does my JavaScript get a “No 'Access-Control-Allow-Origin' header is present on the requested resource” error when Postman does not?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment