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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...