has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. php code example
Example: php has been blocked by CORS policy
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET,HEAD,OPTIONS,POST,PUT");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");