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?
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?
Share Improve this question asked Feb 2 at 19:27 Vikas DeshmukhVikas Deshmukh 3110 bronze badges1 Answer
Reset to default 0This 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.