Customize the user interface in AD B2C custom policy

137 views Asked by At

I am trying to customize the user interface for the app factor registration page

I changed the LoadURI to point to https://aikaan.z13.web.core.windows.net/index.html

I have enabled CORS to allow all methods for https://aikaanms.b2clogin.com and https://login.microsoftonline.com

CORS enabled

But when I run the policy I get an error

AADB2C90047: The resource 'https://aikaan.z13.web.core.windows.net/index.html' contains script errors preventing it from being loaded. Correlation ID: 1cb22f3b-7cdf-43ab-9f9e-53fc37b13907 Timestamp: 2021-04-22 09:36:59Z

Any help is appreciated

1

There are 1 answers

1
Balint On

I am not sure that is what you need but we needed to activate the JS too

so in our SignUpSignin.xml we added

<RelyingParty>
    <DefaultUserJourney ReferenceId="SignUpOrSignIn" />
    <UserJourneyBehaviors>
        <ScriptExecution>Allow</ScriptExecution>
    </UserJourneyBehaviors>