-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS error on https://graphql.org/swapi-graphql/ #229
Comments
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.
|
I was able to get this working locally by updating the headers config in this repo and modifying the |
This looks to indeed be in GraphQL-HTTP not handling OPTIONS, however we should solve it on our end to avoid graphql-http having an opinion on this |
@HoraceBury there is an open PR already, #230 |
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: