AD B2C ROPC JavaScript Token Retrieval

Guillem Soler Suetta 1 Reputation point
2020-10-27T11:33:23.157+00:00

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?

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.