Skip to content
Back

Appwrite Cors Errors after domain added

  • 0
  • Web
lordrhodes.
7 May, 2025, 10:21

So I'm working on an app for my company and I've added in my domain name as the hostname for the project as well as for the custom domain.

But I'm still getting CORS Errors saying that:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cloud.appwrite.io/v1/databases/test-domain/collections/questions-collection/documents. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://localhost’).

When I have not even added localhost as my hostname I've added in my project domain name

TL;DR
Appwrite CORS errors persist despite adding domain. Error suggests 'localhost' as origin instead of project domain. Solution: Check Appwrite configuration for correct domain settings.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more