我已经成功地在.net上应用了JWT身份验证&当我使用postman enter image description here时,结果还不错。
但是当我使用相同的Url从angular调用它时,它显示了一个错误,因为它没有从angular中命中web API的Actionresult。以下是请帮助我的代码。gu enter image description here
发布于 2020-04-28 22:26:57
这应该是你的angular应用程序中的url:http://localhost/59912/api/account/login。当前您使用的端点http://localhost/59912/login不匹配,也不匹配您在postman中使用的端点。
https://stackoverflow.com/questions/61481928
复制相似问题