# Logout gives error about logout url being localhost

**URL:** <https://community.auth0.com/t/logout-gives-error-about-logout-url-being-localhost/193621>\
**Category:** Get Help\
**Tags:** free-trial, login-experience\
**Created:** [October 25, 2025, 6:17pm UTC](https://community.auth0.com/t/logout-gives-error-about-logout-url-being-localhost/193621 "2025-10-25T18:17:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkatsikanis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nkatsikanis/32/57217_2.png) [@nkatsikanis](https://community.auth0.com/u/nkatsikanis)\
**Post date:** [October 25, 2025, 6:17pm UTC](https://community.auth0.com/t/logout-gives-error-about-logout-url-being-localhost/193621/1 "2025-10-25T18:17:12Z")

</div>

our allowed logout urls are correct on prod, but on prod if I click logout I get:

invalid\_request: The “returnTo” querystring parameter “ localhost 3333/” is not defined as a valid URL in “Allowed Logout URLs”. To add a new URL, please do it here:

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [October 31, 2025, 4:38pm UTC](https://community.auth0.com/t/logout-gives-error-about-logout-url-being-localhost/193621/3 "2025-10-31T16:38:16Z")

</div>

Hi @nkatsikanis

Welcome to the Auth0 Community!

Thank you for posting your question. This error message is explicit: your application, running on your production server, is incorrectly sending `localhost:3333` as the `returnTo` URL when it calls the logout function.

You can read further about that and how to fix it here →

> **[Auth0 Support Center](https://support.auth0.com/center/s/article/Simple-errors-related-to-Logout)**
>
> The Auth0 Support Center is your resource for product help. Explore articles, join community discussions, and submit support tickets to get the answers you need.

Thanks!  
Dawid

---

<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:** [November 14, 2025, 4:38pm UTC](https://community.auth0.com/t/logout-gives-error-about-logout-url-being-localhost/193621/4 "2025-11-14T16:38:47Z")

</div>

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