Vikas Deshmukh
Vikas Deshmukh

Reputation: 31

Error : /token API failing for Angular MSAL SSO Implementation due to CORS issue and Strict Policy Issue

I have added necessary details for mu Angular App in App registrations. I have configured redirect URL properly for Single Page Application Platform in Azure App Registrations. While trying to run the SSO MSAL implementation from localhost getting error like CORS error. So, if headers are added to bypass CORS issue, then /token API of MSAL Authentication to get access token is failing due to strict policy error. How to run Angular Application with App Registration on Localhost?

Upvotes: 0

Views: 35

Answers (1)

Vikas Deshmukh
Vikas Deshmukh

Reputation: 31

This can be resolved for localhost by changing the platform in App registration. Instead of using Single Page Application in Platform use Mobile or Desktop Application platform. This resolves issue for Localhost. But if you wish to run Single Page Application on Server then keep the Single Page Application Platform configured as well.

Upvotes: 0

Related Questions