The "returnTo" querystring parameter "..." is not defined as a valid URL in "Allowed Logout URLs"

In the Application > Settings > Application URIs > Allowed Logout URLs, I have entered http://localhost:3000/, and all worked fine.

However, when I put another URI, “http://localhost:85/” and then try to logout, I get this error:

invalid_request : The “returnTo” querystring parameter “http://localhost:85” is not defined as a valid URL in “Allowed Logout URLs”. To add a new URL, please do it here: https://manage.auth0.com/#/account/advanced

It seems taht It only works with the first URI that I put (http://localhost:3000/).

Any suggestion to tackle this issue?

Hi @brunocosta.dsn

Are you including the client_id in your logout request? For example:

https://YOUR_DOMAIN/v2/logout?returnTo=http%3A%2F%2Flocalhost%3A85&client_id=YOUR_CLIENT_ID

3 Likes

It works. Thank you! The docs aren’t so clear about it :wink:

1 Like

I’ll pass that feedback to our docs team regarding that. Thanks @brunocosta.dsn!

1 Like

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