I have set the
Access-Control-Allow-Origin header to * in WordPress. When I test it out in Paw, I get the header in the response. When I do
curl -I theaddress, I get the header in the response.
HTTP/1.1 200 OK Server: nginx/1.11.1 Date: Mon, 08 May 2017 21:58:52 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, OPTIONS, HEAD, PUT, DELETE, TRACE, CONNECT, PATCH
However, when I test it out on https://resttesttest.com it throws an error saying that there’s a problem with the CORS headers. Any ideas as to what could be causing this?
Read more here: Access-Control-Allow-Origin set but not coming through