# Universal Login returns "NotFoundError" statusCode: 404 after configuring Custom Domain

**URL:** <https://community.auth0.com/t/universal-login-returns-notfounderror-statuscode-404-after-configuring-custom-domain/61861>\
**Category:** Get Help\
**Tags:** error, custom-domain, universal-login\
**Created:** [April 27, 2021, 5:52pm UTC](https://community.auth0.com/t/universal-login-returns-notfounderror-statuscode-404-after-configuring-custom-domain/61861 "2021-04-27T17:52:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![onur1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onur1/32/29079_2.png) [@onur1](https://community.auth0.com/u/onur1)\
**Post date:** [April 27, 2021, 5:52pm UTC](https://community.auth0.com/t/universal-login-returns-notfounderror-statuscode-404-after-configuring-custom-domain/61861/1 "2021-04-27T17:52:53Z")

</div>

Hi all,

I am about to configure custom domain in my app. Domain is already verified and i am able to show universal login with it. However with the custom domain, universal login is just returning 404.

 ![Screen Shot 2021-04-27 at 20.40.55](https://global.discourse-cdn.com/auth0/original/3X/9/7/97e338f88d480f330f1d7b021a9145f6a3354c71.png)

I am using auth0-spa-js.

Has anyone experiened something similar?

Any tips would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 27, 2021, 7:34pm UTC](https://community.auth0.com/t/universal-login-returns-notfounderror-statuscode-404-after-configuring-custom-domain/61861/3 "2021-04-27T19:34:44Z")

</div>

Hi @onur1,

Welcome to the Community!

It looks like you might be using the Classic Universal Login with the Lock template. When you’re using a custom domain with a customized universal login, you will need to set the `configurationBaseUrl` and `overrides` options like so:

```auto
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  //... other configs
  configurationBaseUrl: config.clientConfigurationBaseUrl,
  overrides: {
  	__tenant: config.auth0Tenant,
  	__token_issuer: config.authorizationServer.issuer
  },
});

```

> **[Configure Features to Use Custom Domains](https://auth0.com/docs/customize/custom-domains/configure-features-to-use-custom-domains)**
>
> Learn how to configure a custom domain for Auth0 authentication features.

---

<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:** [May 12, 2021, 7:35pm UTC](https://community.auth0.com/t/universal-login-returns-notfounderror-statuscode-404-after-configuring-custom-domain/61861/4 "2021-05-12T19:35:26Z")

</div>

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