Dear Friend,
If you are working on a single-page application using MSAL Angular, I am 100% sure you have encountered this error in your app.
Let’s cut to the chase; here is the solution to fix it. But before we get to the solution, let’s understand what the error is.
The error appears to be the same; the issue arises after login, when it redirects to a URL that is not available or accessible.
The solution is
{
"msalConfig": {
"auth": {
"clientId": "abcs",
"authority": "https://login.microsoftonline.com/",
"redirectUri": "https://127.0.0.1:8007" //https://localhost:8007
}
}
Change this url "redirectUri": "https://127.0.0.1:8007" to https://localhost:8007
Thank you, Hope it will help you
No comments:
Post a Comment