Reputation: 3
I have Azure AD B2C and a Blazor Server-side app with a Login page. I created a ROPC Custom Policy and tested with Postman and it retrieves the token with the claims correctly. But when I want to retrieve the token from the browser with JavaScript to the same endpoint/url I get an error from CORS that my response is blocked. How I solve this? I'm missing any configuration on either the Blazor app or the AD B2C?
Upvotes: 0
Views: 111
Reputation: 2102
ROPC in browser is not supported due to CORS policy. The result is expected.
Please refer similar GitHub issue which helps in understanding more.
Upvotes: 2