graphql / graphql/swapi-graphql
Unexpected error when making requests from Apollo Explorer
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
Hi all 👋🏻 when attempting to execute queries from https://studio.apollographql.com/public/star-wars-swapi/variant/current/explorer , users are reporting errors. Here's the output from `diagnose-endpoint` in case it is helpful:
```
Diagnosing https://swapi-graphql.netlify.app/.netlify/functions/index
⚠️ OPTIONS response is missing header 'access-control-allow-methods: POST'
⚠️ POST response missing 'access-control-allow-origin' header.
If using cookie-based authentication, the following headers are required from your endpoint:
access-control-allow-origin: https://studio.apollographql.com
access-control-allow-credentials: true
Otherwise, a wildcard value would work:
access-control-allow-origin: *
```
Let me know if there's anything I can do to help narrow this down or if you think there's an update that needs to be made to Studio, thank you! 🙇🏻
Contributor guide
Assessment
This issue has not been assessed yet.