
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
- [SOLVED] Appwriteexception: invalid redi...
I've been following this documentation on my app: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-7 On Localhost and local development, it's working fi...
- Appwrite being constantly slow and over-...
As can we can from image we are getting same warnings, and the appwrite is unresponsive. Steps Taken: -Disabled Appwrite stats. Made my app really cache heavy,...
- sveltekit with tailwind on appwrite site...
I noticed that webpage which is displaying fine on vercel is affected on appwrite sites without style being displayed only plain html. Any ideas why or is it te...
