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
- Otp is not coming
Otp is not coming plz check and fix the issue
- Invalid `region` param: Value must be on...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! I cannot initiate a migration witho...
- Migration from cloud to self-hosted fail...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! The migration process fails with the ...