How to resolve AADB2C90047: The resource 'https://localhost:44332/account/login' contains script errors preventing it from being loaded.

Yashwanth Yenugu 116 Reputation points
2020-04-29T14:46:42.053+00:00

This is the content definition Im using. I can see the html content if i navigate to https://localhost:44332/account/login from browser, but if I use it in LoadUrl, B2C is throwing error.

  <ContentDefinition Id="api.signuporsignin">
    <LoadUri>https://localhost:44332/account/login</LoadUri>
    <RecoveryUri>~/common/default_page_error.html</RecoveryUri>
    <DataUri>urn:com:microsoft:aad:b2c:elements:unifiedssp:1.1.0</DataUri>
    <Metadata>
      <Item Key="DisplayName">Signin</Item>
      <Item Key="language.social_intro">Signin with your IDP</Item>
      <Item Key="setting.showSignupLink">false</Item>
    </Metadata>
  </ContentDefinition>
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,662 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2020-04-29T15:28:13.803+00:00

    @Yashwanth Yenugu , If you HTML file contains script/javascript, you would need to allow script execution by using below tag in your RP (SignupOrSignin.xml) file.

    7835-untitled.png

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.