swapi-graphql icon indicating copy to clipboard operation
swapi-graphql copied to clipboard

Unexpected error when making requests from Apollo Explorer

Open bignimbus opened this issue 10 months ago • 0 comments

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: *
Screenshot 2025-01-15 at 6 54 07 AM

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! 🙇🏻

bignimbus avatar Jan 15 '25 11:01 bignimbus