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
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.