Answers for "cakephp 3by cors policy: no 'access-control-allow-origin' header is present on the requested resource."

PHP
0

cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, PUT, PATCH, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: *');
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    exit(0);
}
Posted by: Guest on August-14-2020

Code answers related to "cakephp 3by cors policy: no 'access-control-allow-origin' header is present on the requested resource."

Browse Popular Code Answers by Language