jap_glnOriginal post
Web Developer
I have created a client of Appwrite in my react app. I have followed all the rules so as to avoid this error.
- Created a platform for my app.
- Setting up a hostname in appwrite platform.
- 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
Summary
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.