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
- TEAM INVITE
There is a problem with the team invitation. When a user invites other users, that time, the newly created email address they don't get the invite link and old ...
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...