YaHalaulauOriginal post
Web Developer
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
Summary
Error message indicates a CORS policy issue due to mismatch in origins. Set 'Access-Control-Allow-Origin' header to match 'http://localhost:5173'. Update it in backend code to resolve the problem.