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
- Avatar URLs are using server IP address ...
Issue: Avatar URLs are using server IP address instead of configured domain Environment: Appwrite Version: 1.8.0 Setup: Self-hosted on Google Compute Engine wi...
- server error 500
Hey everyone, I am facing an issue in one of my applications where trying to create the mfachallenge fails with the below error: { "message": "Server Error",...
- Failed to create new project after creat...
Hey warap ya'll. Hope everyone is doing great. I can seem to create a new project from a new account. I have tried on 2 different accounts and its the same thin...