Back

cors policy block

  • 0
  • Self Hosted
  • Functions
  • Databases
  • Web
Abdurazak
19 Jul, 2024, 15:54

I have disabled cors on chrome and my function is accessible on my frontend but not working unless i disable cors. I have added the domain to platform and not fixed. Any help on this will be appreciated.

TL;DR
Issue: CORS policy blocking access to function on frontend even after disabling CORS in Chrome and adding domain to platform. Solution: The CORS policy can be circumvented by adding appropriate headers to the response in the backend code. Ensure that the backend server responds with the proper CORS headers to allow frontend access to the function.
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