401 Unauthorized
NileshLonkar24 opened this issue · 4 comments
NileshLonkar24 commented
I have follow this steps more than 4 5 times from scratch as well as configure the existing code 2 times but it shows the 401 Unauthorized url.
Any one know how this would be resolve.
Thanks,
Nilesh
siva524 commented
I am also facing same issue.Any Solution for this.
cnuis2cool commented
I had the same problem. In endpoints I had put APP URI ID, replaced it with App ID.
var endpoints = {
// Map the location of a request to an API to a the identifier of the associated resource
"https://localhost:44327/": "<Application ID>" // Not APP URI ID
};
Also enabled CORS for Web API.
Followed this: https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api
michaelsync commented
For me, putting App URI works.
but I got two other issues.
derisen commented
Closing this as we are archiving this sample. Please check out the new sample at ms-identity-javascript-angular-spa-aspnetcore-webapi.