-
Notifications
You must be signed in to change notification settings - Fork 274
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 Issue #184
Comments
try using this fetch option: credentials: 'omit' here's en example: |
@Lishenga you may need to open an issue in graphql voyager |
I am getting this issue too. Any idea how to fix this issue ? |
Hello, I am also getting the similar CORS issue when trying to use swapi-graphql with the v3 Apollo client in react: My Apollo client configuration is as follows:
As seen I had tried setting the headers and credentials property but still getting the same error. |
i'm getting the same issue. Any help please? Sounds like the API needs to allow * access, otherwise introduce API keys? |
Any updates on this? I'm also getting the same error. |
Chiming in to ask if there is any update on this issue? Still getting the same error when trying to access the API. Thanks!! |
Same issue edit: here's an alternative endpoint that seems to work https://swapi-graphql.netlify.app/.netlify/functions/index |
Same issue here |
I'm having the same problem. Has anyone been able to come across a solution? |
@JoshuaFurman use this alternative endpoint: |
Replace your URI with this and it will work: NOTE: remove the headers object as they are not needed anymore. |
I think we need to change the graphql netlify _redirects to proxy the old path? |
Hello am getting this error when trying to get an introspection of your graphql api using graphql voyager
Access to fetch at 'https://graphql.org/swapi-graphql' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Could you kindly assist me or tell me why am getting this error?
The text was updated successfully, but these errors were encountered: