Reputation: 185
Azure AD Application can have SPA or Web App or we can have both? i have create app in azure ad and that have both web and api and both have local host url.
so web application redirect uri :localhost:/5020 added platform web
web api redirect uri :localhost:/5030 added this will web api platform
but it giving me error with react msal.js "Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type"
Upvotes: 0
Views: 1910
Reputation: 10831
So please change the App registration -> Authentication->platform type to SPA if it only uses Java script (ex: angular, react etc) instead of Web.
Or change it to web otherwise.
Also after correcting that, please make sure you are not using client credential flow for your SPA App i.e.; (using client secret).Use authorization code flow instead in that case.
Upvotes: 0