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
- Rate limit
How do I solve "Signup Failed, Rate limit for the current endpoint has been exceeded. Please try again after some time"? I have Pro and around 2k requests per ...
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...
- Dev Keys not working
looks like dev key are broken they simply don't work i suggest remove them until you have them working otherwise they confuse devs took me few minutes trying ...