# Allowed Logout URLs

**URL:** <https://community.auth0.com/t/allowed-logout-urls/106829>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [May 12, 2023, 3:20pm UTC](https://community.auth0.com/t/allowed-logout-urls/106829 "2023-05-12T15:20:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asilvazavala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asilvazavala/32/47180_2.png) [@asilvazavala](https://community.auth0.com/u/asilvazavala)\
**Post date:** [May 12, 2023, 3:20pm UTC](https://community.auth0.com/t/allowed-logout-urls/106829/1 "2023-05-12T15:20:02Z")

</div>

I’ve implemented Auth0 in an app made with React-Vite.  
The question is that when I do the Login or Logout I get an error that the page does not have access in Allowed Logout URLs.

My main route right now is:  
[http://localhost:3002](http://localhost:3002)  
I have other routes like:  
[http://localhost:3002/contact](http://localhost:3002/contact)  
[http://localhost:3002/blog](http://localhost:3002/blog)

I added the following under Allowed Logout URLs and Allowed Callback Origins:  
[http://localhost:3002](http://localhost:3002)  
[http://localhost:3002/blog](http://localhost:3002/blog)  
[http://localhost:3002/contact](http://localhost:3002/contact)  
Do I have to add route by route? or  
How do I do the login and logout in 1 line and redirect me to the previous page from any page? Something like:  
[http://localhost:3002/](http://localhost:3002/)\*

In the logout button, I have the following:  
onClick={() =\> logout({ logoutParams: { returnTo: window.location.href } })}

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 12, 2023, 7:22pm UTC](https://community.auth0.com/t/allowed-logout-urls/106829/3 "2023-05-12T19:22:32Z")

</div>

Hi @asilvazavala,

Welcome to the Auth0 Community!

There should be a clickable **Technical Details** button on the error page that shows more information about the error, specifically, it should state the logout URL that was not included in your Allowed Logout URLs in your Application settings.

After you have included that logout URL to your **Allowed Logout URLs** and have the logout button redirect the user the one of the Allowed Logout URLs, this should fix the error.

If you still encounter issues after making these changes, could you please [capture the login and logout events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message to investigate further?

Thanks,

Rueben

---

<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 26, 2023, 7:22pm UTC](https://community.auth0.com/t/allowed-logout-urls/106829/4 "2023-05-26T19:22:43Z")

</div>

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