The "returnTo" querystring parameter is not defined as a valid URL

Hello, I am getting errors when trying to log out of my application with the following (slightly modified to hide private info) error message:

The "returnTo" querystring parameter "https://site.foo.com/auth/logout?redirect_to=https://bar.site.com" is not defined as a valid URL in "Allowed Logout URLs". To add a new URL, please do it here: https://manage.auth0.com/#/applications/#####/settings

I have set up all the “Allowed Logout URLs” (with wildcards and all), but still getting this error. Any suggestions on debugging?

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?

This FAQ explains the cause and solution for the below error, so link it to this topic.

invalid_request: The "returnTo" querystring parameter "[https://YOUR_URL"](https://YOUR_URL)" is not defined as a valid URL in "Allowed Logout URLs"

1 Like