
Access to XMLHttpRequest at 'http://localhost:5000/registerclient' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:5000' that is not equal to the supplied origin. please help

im trying to do one signup page for clients and another page for babysitters, i did 2 schemas and i connected to the backend, i did authRoute page in backend and inside i wrote router.use(cors({credentials:true, origin: "http://localhost:5000"})
Recommended threads
- Login without email or phone number
I'm making a web app targeted towards users who are very tech illiterate, so a lot of them won't even have emails. I know that the only two "identifiers" for a...
- Password Recovery link takes upwards of ...
Hello. I am having this issue above. Is there a way to make this faster? I created this project a while back when appwrite only supported Frankfurt servers. Wil...
- Appwrite not opening in my browser.
https://synapseaudit.appwrite.network/ This is one of my project hosted in appwrite, but only I am the one facing this problem.
