Answer the question
In order to leave comments, you need to log in
How to overcome error: (missing CORS header "Access-Control-Allow-Origin")?
Good afternoon!
I'm trying to get a picture from my site using the API, it turns out something like this:
https://www.pho.com/?p={%22files%22:[%22https://site.net/wp-content/uploads/2019/Play_or_Die.jpg%22],%22environment%22:{}}
Request from foreign origin blocked: Single origin policy prevents reading remote resource at https://site.net/wp-content/uploads/2019/10/Play_o... (Reason: Missing CORS header "Access-Control-Allow-Origin ").
Header always set Access-Control-Allow-Origin: " https://www.pho.com "
Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS"
Header always set Access-Control- Allow-Headers "X-Requested-With, content-type"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question