Strange behavior when submitting post request in Angular 2

前端 未结 3 1848
春和景丽
春和景丽 2020-12-19 21:36

I realize my title is a bit vague, but here is my situation. I have just started an application in which I am implementing JWT for authentication. I have my server side se

3条回答
  •  醉话见心
    2020-12-19 22:20

    Make sure that there is a trailing slash at the end of the route you are calling. So instead of calling

    'http://localhost:5000/auth'
    

    you target

    'http://localhost:5000/auth/'
    

    Hope this helps.

提交回复
热议问题