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
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Searching by attribute "name" requires a...
I have a table "products" with a few columns I'm trying to search by, but I get this error: ```json { "message": "Searching by attribute \"name\" requires a...
- Issue with usage
I have a weird problem, my project on appwrite was using avarage 5-10k reads a day, it was okay, but suddenly last 7 days, reads are about 60k a day, the code h...