Getting CORS error when making GraphQL queries using Appwrite's SDK in Next.js (client-side). Login/signup works fine. Only GraphQL is failing on both localhost and Vercel.
✅ Tried:
Added localhost + Vercel URLs in Appwrite project settings
Used setDevKey() in client config
API key + permissions are set correctly
Regular Appwrite SDK calls work – only GraphQL fails
code snippet:
```const query =
query {
databasesListDocuments(
databaseId: "${process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID}",
collectionId: "6894bf11000015b5ba60"
) { title }
}
;
const res = await graphql.query({ query });
❓Question:
Is Appwrite GraphQL not supported on client-side yet? Or is any extra CORS config needed?
Recommended threads
- how to access the value of account statu...
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...