# Allowed Logout urls not working

**URL:** <https://community.auth0.com/t/allowed-logout-urls-not-working/163817>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [December 17, 2024, 4:12pm UTC](https://community.auth0.com/t/allowed-logout-urls-not-working/163817 "2024-12-17T16:12:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.miller](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.miller/32/48816_2.png) [@scott.miller](https://community.auth0.com/u/scott.miller)\
**Post date:** [December 17, 2024, 4:12pm UTC](https://community.auth0.com/t/allowed-logout-urls-not-working/163817/1 "2024-12-17T16:12:01Z")

</div>

I’m trying to use the logout/v2 endpoint to logout of my frontend app. I’m passing the client id, as well as the redirectTo url which IS listed in my allowed logout urls. I’m getting the error that my url is not in the allowed logout urls, even though it is definitely there. What am i doing wrong? Here is the url that should be logging me out:

[https://ibex-bank-dev.us.auth0.com/v2/logout?clientId=zjTLYJPJ29DVT0r9yvBvMYmiqQ1pvnzY&returnTo=http://localhost:3000](https://ibex-bank-dev.us.auth0.com/v2/logout?clientId=zjTLYJPJ29DVT0r9yvBvMYmiqQ1pvnzY&returnTo=http://localhost:3000)

Please help, thanks!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [December 17, 2024, 6:37pm UTC](https://community.auth0.com/t/allowed-logout-urls-not-working/163817/3 "2024-12-17T18:37:15Z")

</div>

Hello @scott.miller,

Thank you for reaching out to us!

When calling the logout endpoint, you can specify two properties as described [here](https://auth0.github.io/auth0-spa-js/interfaces/LogoutUrlOptions.html), as from what I can see your logout request includes both the clientID and the returnTo parameter, like below:

`https://{yourDomain}/v2/logout?returnTo=http%3A%2F%2Fwww.example.com&client_id={clientId}`

As a mention:

> If the `client_id` parameter is included, the `returnTo` URL that is provided must be listed in the Application’s “Allowed Logout URLs” in the Auth0 dashboard. However, if the `client_id` parameter is not included, the `returnTo` URL must be listed in the “Allowed Logout URLs” at the account level in the Auth0 dashboard.

You can find more information on this [following documentation](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout).

Thank you!  
Gerald

---

<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:** [December 31, 2024, 6:37pm UTC](https://community.auth0.com/t/allowed-logout-urls-not-working/163817/4 "2024-12-31T18:37:50Z")

</div>

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