B2C Custom policy preventing loading and rendering custom html file

Tuan Pham Van 0 Reputation points
2025-11-27T02:36:02.7066667+00:00

Hi Support Team,

We are using Azure AD B2C with a custom policy. In this policy, we provide a customized HTML page that includes both inline scripts and external script sources.

Everything generally works well, but in certain geographic locations we frequently encounter the following issue:

The B2C login page fails to load.

The user is immediately redirected back to our application.

We see this error in the logs:
"HResult": "80131500", "Message": "The resource 'https://....blob.core.windows.net/b2c/n-CA/login.html' contains script errors preventing it from being loaded.",

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.