# In login page, error alert throws

**URL:** <https://community.auth0.com/t/in-login-page-error-alert-throws/19848>\
**Category:** Get Help\
**Tags:** login\
**Created:** [January 10, 2019, 8:41am UTC](https://community.auth0.com/t/in-login-page-error-alert-throws/19848 "2019-01-10T08:41:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayar](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bayar](https://community.auth0.com/u/bayar)\
**Post date:** [January 10, 2019, 8:41am UTC](https://community.auth0.com/t/in-login-page-error-alert-throws/19848/1 "2019-01-10T08:41:33Z")

</div>

In our login page, error alert throws this message:

> You should not be hitting this endpoint. Make sure to use the code snippets shown in the tutorial or contact [support@auth0.com](mailto:support@auth0.com) for help

How to solve this situation?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 10, 2019, 2:23pm UTC](https://community.auth0.com/t/in-login-page-error-alert-throws/19848/3 "2019-01-10T14:23:12Z")

</div>

Hey there @bayar!

Can you provide me more info around what stack are you using what SDK etc so I can get a little bit more of context?

I tried searching for it based on the info you provided and here’s what I got:

> <https://github.com/auth0/lock/issues/1311>
>
> Hi,
> we are using auth0 lock11(11.5.0). We had problem with Cross Origin Authent…ication so we register custom domain (login.besmarthead.com instead of smarthead.eu.auth0.com) -\> cert is managed by auth0. We had followed this tutorial https://auth0.com/docs/custom-domains.
> BUT now when i open page and user is already logged in (saving token in locale storage) i see this (alert window, chrome v65, ubuntu)
> 
> \`You should not be hitting this endpoint. Make sure to use the code snippets shown in the tutorial or contact support@auth0.com for help\`
> 
> I have update lock as tutorial suggest
> 
> \`var lock = new Auth0Lock('your-client-id', 'login.northwind.com', {
> ...
> configurationBaseUrl: 'https://cdn.auth0.com'
> ...
> });\`
> 
> Alert popup when (debugging in network console) when page tries to hit 'https://login.besmarthead.com/client/XDUWdmcRSrP7BdlwmVQXDnognHsgV28a.js?t1521754197839'.
> 
> There is no further error so i do not know where to start search for error. Any help would be appreciated. Thanks

Let me know if it helps otherwise please provide me with more details so I can dig in!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 21, 2019, 12:15pm UTC](https://community.auth0.com/t/in-login-page-error-alert-throws/19848/4 "2019-01-21T12:15:14Z")

</div>

Hey there @bayar!

Have you had a chance to check what I posted above?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 28, 2019, 4:19pm UTC](https://community.auth0.com/t/in-login-page-error-alert-throws/19848/5 "2019-01-28T16:19:47Z")

</div>


