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

Yashwanth Yenugu 121 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 Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    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.

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.