Back

i get an error:'http://127.0.0.1:5173' has been blocked by CORS policy when i try to create a user

  • 0
  • Databases
  • Functions
  • Web
  • Storage
stronguser#2402400
29 Mar, 2024, 14:52

Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://127.0.0.1:5173' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:5173' that is not equal to the supplied origin. I am brand new to reactjs and appwrite

TL;DR
Developers encountering CORS policy error when attempting to create a user in a ReactJS app using Appwrite. Origin mismatch detected with 'http://127.0.0.1:5173' and 'http://localhost:5173'. To resolve, adjust the Access-Control-Allow-Origin header to match the request origin.
stronguser#2402400
29 Mar, 2024, 14:58

please help

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