Skip to content
Back

CORS Policy error

  • 1
  • Web
jap_gln
14 Apr, 2024, 13:05

I have created a client of Appwrite in my react app. I have followed all the rules so as to avoid this error.

  1. Created a platform for my app.
  2. Setting up a hostname in appwrite platform.
  3. Setting up the correct projectID in appwrite client. I was getting a correct response for a few days. But suddenly one day I started getting CORS error out of nowhere. Even though I had made no changes to my code.

Please provide me a solution for this issue

TL;DR
Developers are experiencing a CORS policy error with an Appwrite project in a React app. The issue seems to occur even with no changes to the code. Solution: Check if the correct hostname is set up in the Appwrite platform. Also, ensure the projectID in the Appwrite client is correct. This might resolve the CORS error.
jap_gln
14 Apr, 2024, 13:11
jap_gln
14 Apr, 2024, 13:13
darShan
14 Apr, 2024, 13:20

i haven't used any web platforms based appwrite projects but is the error thrown if you do http://localhost:3000?

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