Back

CORS error

  • 0
  • Self Hosted
  • Databases
  • Web
Amaury
20 Feb, 2025, 04:33

Hey everyone, I've been stumped on a CORS error trying to use the PATCH method on appwrite. I'm hosting locally. I keep getting the same two errors:

'https://cloud.appwrite.io/v1/datadatadata' from origin 'http://localhost:5174/' has been blocked by CORS policy: Method PATCH is not allowed by Access-Control-Allow-Methods in preflight response. & PATCH 'https://cloud.appwrite.io/v1/datadatadata' net::ERR_FAILED

I read the article by appwrite on troubleshooting CORS issues. My platform hostname is localhost.

I'm not sure what it could be. I read something online about having to edit my CORS settings on appwrite and add patch?

Any pointers, tips or arrows in the right direction is welcome and appreciated!

TL;DR
Developers encountering CORS error when trying to use the PATCH method on appwrite hosted locally. Error messages relate to Access-Control-Allow-Methods and ERR_FAILED. Mentioned checking appwrite CORS settings and potentially adding PATCH method. Consider adjusting CORS settings on appwrite.
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