Blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present

Posted 2 months ago

If you’re seeing the following error “has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” add the following into responding request.


<?php header('Access-Control-Allow-Origin: *'); ?>

There’s alternative methods such as chrome extensions too.