Logout gives error about logout url being localhost

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: