

login request is sending twice .what is the problem ?


login request is sending twice .what is the problem ?
If you check the request method, the first request has method OPTIONS, this is a "Preflight" request, which you can read about here:
https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request
It shouldn't actually execute your code assuming your routes are bound to a specific HTTP method, e.g., GET/POST