Access Control Allow Origin Error (CORS)
-
Great plugin! I’m having issues with CORS though when I’m working locally and when I see it on the live site. On the live set, I get this error: “The ‘Access-Control-Allow-Origin’ header has a value https://localhost that is not equal to the supplied origin” and the same happens when I’m working locally, except the value is my site’s domain name
Which file in the json-rest-api folder should I add this to so that I will not get the access control allow origin error?
header(“Access-Control-Allow-Origin: *”);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Access Control Allow Origin Error (CORS)’ is closed to new replies.