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

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. AmanpreetSingh-MSFT 56,386 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.

    Was this answer helpful?

    2 people found this answer helpful.