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.
Summary
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
Rank 4: Virtual Machine
Nov 16, 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
Rank 4: Virtual Machine
Nov 16, 2023, 14:57
iam getting this error
Drake
Admin
Nov 16, 2023, 19:22
Please share screenshots of the web platforms you added to your Appwrite project