After stepping through it and stopping at the breakpoints, I realized that the problem is it isn't able to fetch anything from the backend because it isn't running. So now let's test with the backend running in debug mode:
After testing I see that it's a 404 error. This is because the allowed origins doesn't include all the endpoints that it should.
After updating the allowed origins, let's try running it again.
Testing login without running backend:
Testing with breakpoints:
After stepping through it and stopping at the breakpoints, I realized that the problem is it isn't able to fetch anything from the backend because it isn't running. So now let's test with the backend running in debug mode:
After testing I see that it's a 404 error. This is because the allowed origins doesn't include all the endpoints that it should.
After updating the allowed origins, let's try running it again.
It's still giving me a 404 error however