Skip to content
Back

Appwrite CORS Issue

  • 0
  • Web
sachu47
13 Nov, 2024, 06:15

I have created a project and added a web platform with giving hostmain as *.vercel.app. But when I start my application

Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin '.vercel.app' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin.

TL;DR
Developers are having a CORS issue with Appwrite. To solve it, they should add "localhost" as a platform. After adding the platform, developers are still encountering issues and need help.
sachu47
14 Nov, 2024, 06:38

Hey there can anyone help me with this issue. Thank you

Guille
14 Nov, 2024, 11:19

Why is telling you're using localhost?šŸ¤” It should be the vercel domain

sachu47
17 Nov, 2024, 10:02

Yes but I’m getting that, even after saving the changes. I even tried with deleting the previous and creating a new one.

Raman
17 Nov, 2024, 10:07

Did you add the platform on your instance

Raman
17 Nov, 2024, 10:08

Did you add the project here?

Raman
17 Nov, 2024, 10:09

cc: @sachu47

sachu47
17 Nov, 2024, 10:12

Yes I did add the platform

sachu47
17 Nov, 2024, 10:13
Raman
17 Nov, 2024, 13:00

do one thing add localhost as a platform as well.

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