graphql / graphql/swapi-graphql

Unexpected error when making requests from Apollo Explorer

Open
#238 0 comments 2 reactions 0 assignees View on GitHub
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: *
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.