I am using appwrite for the first time. I tried the example in the documentation. However, I got the following error.I am using appwrite for the first time. I tried the example in the documentation. However, I got the following error. here is the error,
Access to XMLHttpRequest at 'http://hl-appwriter.buildapi.cyou/v1/account' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
anyone have idea how to fix this ? Thank you !!!
Did you add your client app as a web platform to your project?
yes
Also, make sure you're using https for your endpoint
I originally used http, but after your response I changed it to https. I got a solution to my problem. Thank you for your support
[SOLVED] CORS Error In React JS
Recommended threads
- Domain is already used. Please try again...
I have a website with where the www.domain.me This website works just fine But if I try to visit domain.me. I get this error. I keep getting sent to some app ri...
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...