# Login widget not rendering, universal login with custom domain

**URL:** <https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [February 7, 2025, 6:35pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691 "2025-02-07T18:35:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![spdeveloper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spdeveloper/32/70868_2.png) [@spdeveloper](https://community.auth0.com/u/spdeveloper)\
**Post date:** [February 7, 2025, 6:35pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/1 "2025-02-07T18:35:45Z")

</div>

Hi,

We are getting a blank screen instead of the login page. This started happening today. Inspect element shows this where Auth0 header should render  
`<script src="URL_TO_YOUR_ASSET" async="" defer="" integrity="ASSET_SHA"></script>`

Console log error

```auto
identifier:1 Refused to execute script from 'https://xxx.xxx.xx/u/login/URL_TO_YOUR_ASSET' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

```

Resetting page template to default did not help

```auto
<!DOCTYPE html>
<html>
  <head>
    {%- auth0:head -%}
  </head>
  <body>
    {%- auth0:widget -%}
  </body>
</html>

```

Any ideas what could be the issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 7, 2025, 8:34pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/3 "2025-02-07T20:34:12Z")

</div>

Hi @spdeveloper

Welcome back to the Auth0 Community!

You issue could be either caused by the fact that the script that you are trying to execute could point to a different file type then the one expected, it hits a cross origin error. Alternatively, the file that it was pointing to could also be completely missing.

Since you have reset the template to the default and the issue still persists, it might require us to review a HAR file and I encourage you to open a support ticket at [https://support.auth0.com/](https://support.auth0.com/). HAR files are automatically sanitized on upload in the support center. They will be able to better assist you with this error if it still persists.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![spdeveloper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spdeveloper/32/70868_2.png) [@spdeveloper](https://community.auth0.com/u/spdeveloper)\
**Post date:** [February 7, 2025, 9:19pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/4 "2025-02-07T21:19:20Z")

</div>

It looks to be related to the custom domain. I reverted configuration changes in our application to use auth0 domain instead of custom domain, and the login appeared. No changes made in Auth0 tenant.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 7, 2025, 9:24pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/5 "2025-02-07T21:24:41Z")

</div>

Thanks for letting us know @spdeveloper !

If you have any other questions, feel free to leave a reply or post on the community!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![TheMuffinMan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/themuffinman/32/37632_2.png) [@TheMuffinMan](https://community.auth0.com/u/TheMuffinMan)\
**Post date:** [February 19, 2025, 5:58am UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/6 "2025-02-19T05:58:59Z")

</div>

I ran into the same issue and had to open an Urgent support ticket about it. It seems the issue revolves around a beta experience for managing custom layouts (that are only available via custom domains).

If you fire up the CLI tool and choose advanced mode it switches your prompt from standard right into advanced without warning and it puts some default configuration with required variables as place holders.

The solution here is to change the rendering mode from “advanced” to “standard” and delete all other keys in the javascript object.

So basically just paste this into the file that opened in notepad:

```auto
{
  "rendering_mode": "standard"
}

```

Then next time make sure you don’t choose advanced mode or else it will brick you again.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/9/5/959284e6320b2e6942ef3ae17f872fb7a1374c80.png)

FWIW now that I understand the concepts around this the CLI IS descriptive (it says choose Rendering Mode), but to the lay person it feels like these choices represent two different UI tools (one being raw javascript and the other being a UI) which is 100% not the case.

The inconsistency here is that once you’ve chosen advanced, choosing standard won’t change the rendering mode to standard. You have to choose advanced and then manually change the key defined above to standard.

---

<div class="post-metadata">

**Author:** ![TheMuffinMan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/themuffinman/32/37632_2.png) [@TheMuffinMan](https://community.auth0.com/u/TheMuffinMan)\
**Post date:** [February 19, 2025, 6:59am UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/7 "2025-02-19T06:59:03Z")

</div>

The reason turning off custom domain worked is because only the custom domain supports page template customizations. You can actually use your custom domain and the auth0 hosted url implementations side by side and the auth0 hosted url will not reflect your page template changes.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 19, 2025, 6:06pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/8 "2025-02-19T18:06:01Z")

</div>

Thank you for the additional info on the matter @TheMuffinMan!

In case anyone will need this in the future, I will leave the following documentation regarding Auth0 CLI and rendering mode for anybody who might find it useful!

- [auth0 universal-login customize | Auth0 CLI](https://auth0.github.io/auth0-cli/auth0_universal-login_customize.html)
- [Configure ACUL Screens](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens)

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![di1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/di1/32/42931_2.png) [@di1](https://community.auth0.com/u/di1)\
**Post date:** [February 24, 2025, 11:18pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/9 "2025-02-24T23:18:25Z")

</div>

> [@TheMuffinMan](#):
>
> The inconsistency here is that once you’ve chosen advanced, choosing standard won’t change the rendering mode to standard. You have to choose advanced and then manually change the key defined above to standard.

We just ran into the exact same issue that broke our login experience. In my opinion, the CLI is poorly designed. Not only the issue that @TheMuffinMan mentioned, but also the CLI doesn’t showcase what’s the current rendering mode. When we tweaked the setting and changed back to standard, we couldn’t verify anywhere if the setting takes effect. If selecting “advanced” again, it shifts the rendering mode immediately.

---

<div class="post-metadata">

**Author:** ![TheMuffinMan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/themuffinman/32/37632_2.png) [@TheMuffinMan](https://community.auth0.com/u/TheMuffinMan)\
**Post date:** [February 24, 2025, 11:39pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/10 "2025-02-24T23:39:30Z")

</div>

When using the CLI I think it says it saves advanced mode changes when you save the file that opens up and then close the file.

Also, FWIW the CLI is still a beta tool. Previously, the way you’d check the rendering mode is to use the API.

---

<div class="post-metadata">

**Author:** ![spdeveloper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spdeveloper/32/70868_2.png) [@spdeveloper](https://community.auth0.com/u/spdeveloper)\
**Post date:** [February 26, 2025, 3:05pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/11 "2025-02-26T15:05:55Z")

</div>

Thank you @TheMuffinMan , that solved the issue I was facing!

---

<div class="post-metadata">

**Author:** ![ryndm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryndm/32/59754_2.png) [@ryndm](https://community.auth0.com/u/ryndm)\
**Post date:** [March 4, 2025, 9:23pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/12 "2025-03-04T21:23:29Z")

</div>

Please make this clear to the user. I was setting up another tenant and by mistake updated one of the older tenants. It was very difficult to find out the root cause.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 18, 2025, 9:23pm UTC](https://community.auth0.com/t/login-widget-not-rendering-universal-login-with-custom-domain/181691/13 "2025-03-18T21:23:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
