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: *'); ?>

No comments: