My frontend is screaming even it's the frontend is localhost.
I have tried to put * in hostname but still not fixed. Both in development and production.
What could be leading to this?
Localhost should be added as a platform by default, but you can try specifically adding it
I even tried adding there * for wildcard. I am now trying to see if project id is sent in the header requests.
Thanks to <@462046107556511744> he pointed out something interesting about query formats. And I was able to resolve the issue.
Glad your issue is resolved now! Please mark this post as solved by adding "[Solved]" in front of your post's title.
CORs problem even on localhost [Solved]
[SOLVED] CORs problem even on localhost
do you know how/why this code was like this?
First of all I used AI to generate much of the code. Could it be prompting or the AI not prioritising the latest documentation?
Probably the latter
- Did AI install the Appwrite SDK package too?
- Can you share what the code was?
- Are you using the Appwrite docs MCP server?
- How are you giving AI context about Appwrite?
- Yes AI installed the SDK
- The code
const result = await databases.listDocuments(DATABASE_ID,COLLECTIONS.SUBSCRIPTIONS, [Query.equal("user_id", user.$id)]); //Notice value isn't an array
if (result.documents.length > 0) {
navigate({ to: "/dashboard" });
}
} catch (e) {
console.log("No subscription found");
}```
3. No, I didn't start with the Appwrite docs MCP server.
4. Oh yes, but it seems Claude usually has old knowledge about Appwrite.
Weird...did you have different Appwrite SDKs installed?
All I changed was treating value as an array and things started working.
SUBSCRIPTIONS, [Query.equal("user_id", [user.$id])]);
Recommended threads
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...