Hello,
I'm getting the error message Access to XMLHttpRequest at 'https://appwrite.io/v1/account' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. when connecting to Appwrite from localhost.
I added the following hostnames in the web platforms of my project:
127.0.0.1 localhost *
None of them works.
Any ideas?
Can you try setting your endpoint to https://cloud.appwrite.io/v1?
That actually works! Thanks, man.
[SOLVED] Request blocked by CORS policy from localhost
Recommended threads
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...
- GitHub Student Login Loop Issue
signed up using my GitHub Student Developer Pack. However, whenever I click "Sign in with GitHub", I get stuck on the login page. No matter how many times I try...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...