I use graphql-voyager in this Proof of Concept poc-postgraphile-forum.
I have my graphql server on http://127.0.0.1:5000/graphql (powered by postgraphile).
graphql-voyager is exposed on http://127.0.0.1:3001 and load graphql schema on http://127.0.0.1:5000/graphql.
Problem: I have this error in my browser:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5000/graphql. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5000/graphql. (Reason: CORS request did not succeed).
TypeError: NetworkError when attempting to fetch resource.

To fix it, I need to remove credentials in fetch call, it is this line:
At this time, I don't understand what is the credentials option aim.
Possible line of approach to fix it:
- remove
credentials option if it is useless
- add
graphql-voyager configuration option to enable / disable credentials option
I use
graphql-voyagerin this Proof of Concept poc-postgraphile-forum.I have my graphql server on http://127.0.0.1:5000/graphql (powered by postgraphile).
graphql-voyageris exposed onhttp://127.0.0.1:3001and load graphql schema onhttp://127.0.0.1:5000/graphql.Problem: I have this error in my browser:
To fix it, I need to remove
credentialsinfetchcall, it is this line:graphql-voyager/src/middleware/render-voyager-page.ts
Line 53 in aea16b5
At this time, I don't understand what is the
credentialsoption aim.Possible line of approach to fix it:
credentialsoption if it is uselessgraphql-voyagerconfiguration option to enable / disablecredentialsoption