Closed dlbnco closed 5 years ago
Hello @dlbnco! I'm looking into this.
The respective access-control headers now accept wildcard requests. Let me know if this fixes your issue.
@KenanSulayman yes it does! I can now fetch from the API.
I'm still getting this warning, though:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.psychonautwiki.org/ with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
That's only true as long as you're trying to access the API through outside of the expected entrypoints:
Content-type: application/json
& {"query":"query{substances(query:"LSD"){addictionPotential}}"}
sent as body of the request to https://api.psychonautwiki.org/.@KenanSulayman
I realized that the warning just happens once loading Apollo's Dev Tools, so it must be something with the extension. Querying from the app itself won't return any warnings.
Thanks for sorting this out!
Hello 👋
Is it possible to use the API from
localhost
?I just bootstrapped an app which will consume the API via Apollo GraphQL, and I'm getting this:
I tried following the
no-cors
suggestion and added the following into my Apollo configuration :This will get rid of the errors, but then the server will respond with 500.