Search This Blog

Sunday, November 3, 2019

PHP FIX has been blocked by CORS policy: No 'Access-Control-Allow-Origin' - SOLVED

PHP FIX has been blocked by CORS policy: No 'Access-Control-Allow-Origin'

In the PHP code above, I am telling the browser that site-a.com has permission to make cross-domain requests to my website. The second parameter of PHP’s header function has been set to FALSE so that it is not overwritten by any other Access-Control-Allow-Origin headers that we may add in the future.

Note that you may also come across examples like this on the web:


No comments:

Post a Comment

content-wide advt