Back

Error while sending a request

  • 0
  • Web
Samurai
1 Dec, 2023, 09:07

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=00c1bcae:862:15) at Generator.throw (<anonymous>) at rejected (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=00c1bcae:495:32) SignupForm.tsx:36 AppwriteException: Network request failed at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=00c1bcae:862:15) at Generator.throw (<anonymous>) at rejected (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=00c1bcae:495:32) cloud.appwrite.io/v1/account:1

TypeScript
    Failed to load resource: net::ERR_FAILED
TL;DR
There is an error while sending a request due to a CORS policy blocking access to the requested resource. The project ID should be double-checked. To troubleshoot, share the request headers from the browser dev tools. There is a network request failure indicated by the error message. No solution is provided in the support thread.
Drake
1 Dec, 2023, 14:34

Please double check your project id is set correctly. If you're still having troubles, please share the request headers for the API call from the browser dev tools

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more