Back

Cors

  • 0
  • Web
  • Cloud
anyuru
18 Oct, 2024, 12:00

I'm facing cors issues when I make requests with my frontend delployed on vercel. I added and pointed it to a subdomain (distributa.ablestate.africa) of my domain (ablestate.africa). In the platforms I have one that has its hostname as distributa.ablestata.africa so I should expect it to work. However requests keep on raising the cors issue. I have attached screenshots of my response and configurations in the appwrite console. Any help is highly appreciated. Thanks.

TL;DR
Developers facing CORS issues when making requests with frontend deployed on Vercel and pointing it to subdomain. Requests keep raising CORS issue despite correct hostname settings. Solution: Edit hostname settings from Project Overview page under Web platform integrations and ensure correct configurations.
devo_wm
18 Oct, 2024, 12:37

without seeing your settings....looks like you've only got localhost set up in your custom domains

devo_wm
18 Oct, 2024, 12:39

sorry not custom domains but web platform integrations

devo_wm
18 Oct, 2024, 12:39

Check your hostname settings

devo_wm
18 Oct, 2024, 12:41

From your Project Overview page - scroll down to Integration and select your Web platform and edit the hostname settings from there

anyuru
18 Oct, 2024, 12:52

If you can see the second screenshot, production is one of the platforms which has its hostname set to distributa.ablestate.africa I guess that should be working.

anyuru
18 Oct, 2024, 12:53

However I cannot tell why its actually not working?

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