Error: No 'Access-Control-Allow-Origin' header is present on the requested resource CORS not working php

 Error: No 'Access-Control-Allow-Origin' header is present on the requested resource

CORS not working php

Cross-Origin Request Headers(CORS) with PHP headers

solution add this on top of the page.

header('Access-Control-Allow-Origin: *');

header("Access-Control-Allow-Methods: GET, OPTIONS");

Error-No-Access-Control-Allow-Origin-header-CORS-php.html

Comments