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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,847 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,420 questions
{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.