Multiple allowed web origins

Hello community,

I’m having an issue with redirection behavior based on my Auth0 application settings.

In my Auth0 app configuration, I have two entries in the Allowed Web Origins: one for my production environment and another for localhost (for development).

However, when I open the app in localhost, it automatically redirects me to the production domain.

If I change the order of the Allowed Web Origins (putting localhost first), then opening the app in production redirects me to localhost instead.

It’s as if the app is always redirecting to the first origin in the list, regardless of which domain I’m actually accessing.

Is this expected behavior? Shouldn’t the redirect URI depend on the actual environment the app is running in?

Thanks in advance for any insights!