
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
- Unraid Deployment
Does anyone know how to point a production iOS app to an Appwrite Docker image I have on my Unraid server? I need a lot of storage, and having Appwrite on my Un...
- not getting cookie in header of appwrite...
my website working locally and on vercel , but when hosting on appwrite sites the main core issue is its not getting the cookie . <@743532656767270934> help
- custom domain failing
I have an appwrite app at a subdomain myapp.topdomain.com. I want to configure the appwrite endpoint to use a 2nd level subdomain e.g. api.myapp.topdomain.com. ...
