I'm developing a frontend app using the Appwrite Web SDK on http://localhost:3000, and I'm encountering two issues when trying to register or log in users:
CORS Error: Requests to https://cloud.appwrite.io/v1/account are being blocked with the error: "No 'Access-Control-Allow-Origin' header is present..." I cannot add http://localhost:3000 as a CORS origin in the Appwrite Cloud Console (platform settings > Web App).
401 Unauthorized: Even when using the official Appwrite SDK (account.create() and account.createSession()), the requests fail with 401 Unauthorized and TypeError: Failed to fetch.
I'm not using any API keys or manual fetch() calls—only the SDK. It appears the issue is related to the Cloud-hosted Appwrite environment not allowing custom local origins.
Can you confirm if local dev origins like http://localhost:3000 are supported in Appwrite Cloud? If not, what is the recommended workaround for local development?
Recommended threads
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- User Blocked - False Positive
Today I tried to log in to my cloud console and it said the user is blocked and I didn't even receive any email regarding this like what kind of violation is my...