在 AD B2C 自定义策略中自定义用户界面

时间:2021-04-22 09:54:58

标签: azure-ad-b2c identity-experience-framework

我正在尝试为应用因子注册页面自定义用户界面

我将 LoadURI 更改为指向 https://aikaan.z13.web.core.windows.net/index.html

我已启用 CORS 以允许 https://aikaanms.b2clogin.comhttps://login.microsoftonline.com 的所有方法

CORS enabled

但是当我运行策略时出现错误

AADB2C90047:资源“https://aikaan.z13.web.core.windows.net/index.html”包含阻止加载的脚本错误。 关联 ID:1cb22f3b-7cdf-43ab-9f9e-53fc37b13907 时间戳:2021-04-22 09:36:59Z

感谢任何帮助

1 个答案:

答案 0 :(得分:0)

我不确定这是否是您所需要的,但我们也需要激活 js

所以在我们的 SignUpSignin.xml 中添加了

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