Back

Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:517

  • 1
  • Web
  • Cloud
Samrudh S
6 Apr, 2024, 23:32

I'm getting the CORS policy error despite setting the endpoint to https://cloud.appwrite.io/v1. Please help. The error states "Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:5173/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

TL;DR
Developers are encountering a CORS policy error despite setting the endpoint correctly. The error message indicates that the 'Access-Control-Allow-Origin' header is missing. To resolve this, the developers should configure the server to include the appropriate header, allowing requests from the specified origin.
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