#Appwrite CORS Issue

1 messages · Page 1 of 1 (latest)

karmic pagoda
#

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.

karmic pagoda
#

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

dusky prairie
#

Why is telling you're using localhost?🤔 It should be the vercel domain

karmic pagoda
#

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

tame comet
#

Did you add the platform on your instance

#

Did you add the project here?

#

cc: @karmic pagoda

karmic pagoda
#

Yes I did add the platform

tame comet
karmic pagoda
#

So I need to have two platforms add one for localhost and another for vercel

karmic pagoda
#

I tried still facing the same isssue

karmic pagoda
#

Hey can anyone help me fix this issue ?

merry blade
#

I am having the same issue. I have hosted my nextjs app in netlify. While in dev mode the document is being created as intended. But when in production the data is not being saved to the database.

#

i even added * as hostname but it didnt work.

wicked mango