# Cannot use localhost as login url in application setting

**URL:** <https://community.auth0.com/t/cannot-use-localhost-as-login-url-in-application-setting/109729>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 21, 2023, 11:06pm UTC](https://community.auth0.com/t/cannot-use-localhost-as-login-url-in-application-setting/109729 "2023-06-21T23:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neofufu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neofufu/32/48062_2.png) [@neofufu](https://community.auth0.com/u/neofufu)\
**Post date:** [June 21, 2023, 11:06pm UTC](https://community.auth0.com/t/cannot-use-localhost-as-login-url-in-application-setting/109729/1 "2023-06-21T23:06:31Z")

</div>

In application setting, when setting up login url, I got following error.

```auto
Error!
Payload validation error: 'Object didn't pass validation for format absolute-https-uri-or-empty: https://localhost:9999/oauth' on property initiate_login_uri (Initiate login uri, must be https).

```

Somewhere in this forum, I saw exact same issue 2 years ago.  
For callback and logout url, [https://localhost](https://localhost) simply works BUT it does not with login url.  
Is there specific reasoning for that?

I am trying out our app with my free account so that we can move quickly once our team officially starts migration, and using localhost would be the quickest for us.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 21, 2023, 11:25pm UTC](https://community.auth0.com/t/cannot-use-localhost-as-login-url-in-application-setting/109729/2 "2023-06-21T23:25:46Z")

</div>

Hey there @neofufu welcome to the community!

I did a bit of digging myself and this was never explicitly addressed - You can get around it by adding `127.0.0.1` rather than `localhost` for testing purposes.

---

<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:** [July 5, 2023, 11:26pm UTC](https://community.auth0.com/t/cannot-use-localhost-as-login-url-in-application-setting/109729/4 "2023-07-05T23:26:06Z")

</div>

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