Skip to content
Back

[SOLVED] CORS error

  • 0
  • Web
bharath
16 Nov, 2023, 14:57

hey iam trying to connect my frontend with appwrite . i have deployed my frontend in vercel and backend appwrite cloud. When iam trying to authenticate using my domain name i was unable to authenticate. if iam using vercel default link without domain iam able to authenticate.

TL;DR
The user was facing a CORS error while trying to authenticate their frontend with Appwrite. The error was related to the 'Access-Control-Allow-Origin' header not matching the supplied origin. The user mentioned that they were able to authenticate successfully when using the default link provided by Vercel, but not with their own domain name. The thread ended with a comment asking for a solution and the title of the thread was marked as [SOLVED]. Unfortunately, the solution was not mentioned in the TL;DR.
bharath
16 Nov, 2023, 14:57

Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'https://www.printfc.in' 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.

bharath
16 Nov, 2023, 14:57

iam getting this error

Drake
16 Nov, 2023, 19:22

Please share screenshots of the web platforms you added to your Appwrite project

bharath
17 Nov, 2023, 18:40

Solved

Drake
17 Nov, 2023, 20:20

[SOLVED] CORS error

rudra_2001
4 Dec, 2023, 09:55

What solved it ?

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