Back

CORS policy error

  • 0
  • Databases
  • Web
bosichelstiel
5 Dec, 2023, 15:40

Hello! Would really appreciate some help if anyone is able. I followed along on a youtube video creating a fake social media app called "snapgram." Everything worked fine until I deployed it on netlify. Now, when I try and log in to snapgram, it gives me an error. CORS is expecting requests to come from localhost:... instead of the new domain given to me by netlify. Is there a way to fix this within Appwrite? Is there any type of settings I could change that would resolve this error?

TL;DR
User is experiencing a CORS policy error after deploying their app on Netlify. They are looking for a solution within Appwrite to fix the error. One possible solution is to add the new domain provided by Netlify to the platforms list in the Appwrite dashboard. Another user suggests adding the new domain to the overview tab under stats.
D5
5 Dec, 2023, 15:47

You will need to add the new platform domain to the appwrite dashboard

D5
5 Dec, 2023, 15:49
D5
5 Dec, 2023, 15:51

In the overview tab, bellow stats, you have there the ability to add new platforms. You should add one and set your new domain (for example: mydomain.netlify.app)

bosichelstiel
5 Dec, 2023, 18:45

It worked, thank you so much!

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