Back

Fix CORS error when trying to send request form localhost REACT app

  • 0
  • Web
  • REST API
𝗕𝗢𝗴𝗴𝗢𝗲𝗕𝗲𝗲
18 Jan, 2024, 03:55

I am building a react app on my localhost. Trying to send a "create" user request but got error from CORS policy 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 encountering a CORS error when trying to send a request from a localhost React app. The error is: "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."
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