Answers for "s been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. php"

PHP
0

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");
Posted by: Guest on October-18-2020
-1

from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@CrossOrigin(origins = "http://localhost:4200")
@GetMapping("/yourPath")
Posted by: Guest on December-31-2020

Code answers related to "s been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. php"

Browse Popular Code Answers by Language