Skip to content
Back

CORS Error

  • 0
  • Self Hosted
Hisham AlShereef
13 Nov, 2025, 21:52

getting the following error in my app after deploying it: Access to fetch at 'https://appwrite.mydomain.tld/account' from origin 'https://myapp.mydomain.tld' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin. Have the server send the header with a valid value.

I have added the domains of my frontend and backend to Platforms. also stopped the instance and restarted it.

TL;DR
Developers are facing a CORS error in their deployed app due to a misconfiguration in the 'Access-Control-Allow-Origin' header. The provided origin doesn't match the expected value. Solution: Verify the CORS settings on the server to ensure the correct origins are allowed. Check the 'Access-Control-Allow-Origin' header and adjust it accordingly.
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