How do I configure the project in my appwrite console to include the appropriate CORS headers and set up CORS rules. My current origin will be "http://localhost:3000". I've setup the Hostname as localhost in the platform settings. IDk if theyre related. Any help would be appreciated.
Yes, you need to have a Web Platform configured with a hostname of exactly localhost
maybe your project ID is incorrect/missing
An incorrect project id will should not give you a cors issue, cors is mostly an issue regarding the web platform not being set-up :)
If the project ID is missing or incorrect, there will be no valid platforms, therefore CORS error
If it's incorrect it does not give me cors errors.
Recommended threads
- SSL certificate issuance failed:
Domain verifies but SSL cert fails, tried different subdomains like .api and .aw, used cname and CAA, no prior CAA existed on website, tried Multiple CAAs at on...
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- Password check in function
Hi, is there any way now for checking if the users password is correct in a function? I am creating a delete user function and before deleting I would like to c...