You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following in the browser console whilst accessing https://graphql.org/swapi-graphql/:
Access to fetch at 'https://swapi-graphql.netlify.app/.netlify/functions/index' from origin 'https://graphql.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
I am also experiencing this issue when using the SWAPI GraphQL API with Apollo Studio's GraphQL Explorer that use your API. See screenshot - all queries lead to "Fail to fetch error". The issue seemed to begin around a week ago, at a similar time to the other CORS issues.
The Apollo Studio support team suggested the issue was at the API's end, which seems to be the case given the CORS issues happening in the last week.
Any chance you could add some extra headers like these below? This GraphQL explorer is great as a companion to tutorial articles explaining how to do stuff in GraphQL.
Access-Control-Allow-Origin: http://studio.apollographql.com
Access-Control-Allow-Methods: GET, POST, OPTIONS
Hi,
I'm getting the following in the browser console whilst accessing
https://graphql.org/swapi-graphql/
:And here's the screenshot of GraphiQL:
I wonder if the change that happened yesterday may have cause the issue?
Maybe I'm doing something wrong?
The text was updated successfully, but these errors were encountered: