Skip to content
Back

cors error

  • 0
  • Web
Pranjali Sehrawat | Contributer
30 Jul, 2025, 15:55

my website is working and logged me in and sign also in the local host , but when i deployed it and then used it in the login and signup, it shows failed to fetch, and i am deloying through vercel, this is what the console is displaying:- https://fra.cloud.appwrite.io/v1/account/sessions/email' from origin 'https://mega-blog-project-two.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. Have the server send the header with a valid value. please help🙏 @Dennis Ivy

TL;DR
Ensure you have added your Vercel domain as a platform in Appwrite to fix the CORS error. The error occurs because the 'Access-Control-Allow-Origin' header value does not match the supplied origin. Update the header with a valid value to resolve the issue.
Kenny
30 Jul, 2025, 16:00

Have you added your vecel domain as a platform in appwrite

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