
Hi, I am trying to create a new user sign-up for an application using Vite and React and when connecting with appwrite client getting CORS error, tried adding the localhost as pltform in appwrite Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. api.ts:16 AppwriteException: Network request failed at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=da635d55:862:15) at Generator.throw (<anonymous>) at rejected (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=da635d55:495:32) SignupForm.tsx:42 AppwriteException: Network request failed at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=da635d55:862:15) at Generator.throw (<anonymous>) at rejected (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=da635d55:495:32) api.ts:8
POST https://cloud.appwrite.io/v1/account net::ERR_FAILED 404 (Not Found)

No 'Access-Control-Allow-Origin' localhost - Vite-React

Please make sure your project id is set and correct

@Drake Appreciate the help, the project it is set and endpoint is correct but still getting the CORS error - I added a Web Platform integration with localhost but still not resolved

Would you please check the network logs for the request in your browser's dev tools? Please share the request hearers
Recommended threads
- How To Send Email Verification From Serv...
How can I send email verification from server action or component after sign up in next.js ? Is there any way ?
- x-appwrite-user-jwt missing
Even for logged in users I can't see "x-appwrite-user-jwt" or "x-appwrite-user-id" in headers of an appwrite function. I'm trying to send "x-appwrite-user-id" m...
- ATTRIBUTE NOT SHOWING DELETE
Hi, I'm trying to delete an attribute in my collection but it won't delete, It's not even showing the delete when I click on the hamburger icon, Its showing onl...
