
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
- Struggling with Sessions
Understanding check: createAnonymousSession() registers the session with the backend setSession() creates a cookie on the user’s computer(?) getSession(‘curr...
- MCP and VSCode Docs
I like your tools, but would like to set up Copilot in VSCode, but these docs don't offer that guide. Did I miss something? https://appwrite.io/docs/tooling/mcp
- How to set wildcard at custom doamin
For OAuth2 redirect, I have set the appwrite api endpoint as appwrite.example.com, and added the CANME in cloudfare where I bought the domain name. And I hosted...
