Closed geoffdavis92 closed 7 years ago
I am also having this issue. I've noticed that sometimes I request from my site on an http connection, and the 'Access-Control-Allow-Origin' value refers to the https version of my site, and sometimes vice-versa.
I suspect this is because I've been inconsistent in using http vs https, and the API is inappropriately caching the protocol for the response headers. I've noticed that there will be particular queries where it works only on the http version, and particular queries where it works only on the https version.
Also experiencing this - anyone found a way around it?
I'm getting a '
Access-Control-Allow-Origin
' header error on an API call, but the Headers in my network tab show a200 OK
status code and the correct data returning in the response/preview tabs.I am using a Javascript library to make an AJAX call from an
https://
secured GH pages site.Notes:
.../locate?badParam=badValue
as a cache busting call, but to no availThis would not be a problem if the browser/server allowed me to retrieve the data returned in the response, but because of the CORS error, it blocks the returning data from entering my JS scope.
The following are my request/response headers from my network tab:
General
Response Headers
Request Headers