Umbraco 16.3.1 - Endless redirect loop at login

Environment:

Proxy setup: The Nuxt application proxies all requests to the ASP.NET Umbraco backend.

Configuration:

Description of the issue:

When running Umbraco 16.3.1 in a proxied setup (Nuxt frontend → ASP.NET backend), setting both UmbracoApplicationUrl and BackOfficeHost to point to the Nuxt application’s URL (http://localhost:3000) leads to a redirect loop when trying to login.

Observed behavior:

Endless redirect loop

Expected behavior:

BackOffice should operate correctly when proxied through the Nuxt frontend.

Steps to reproduce:

Run Umbraco ASP.NET site on http://localhost:8081.

Run Nuxt app on http://localhost:3000, proxying requests to http://localhost:8081.

Set the settings in appsettings.json

Try to access the Umbraco BackOffice via the nuxt application.

Download screenrecord via wetransfer

1 Like

Ah I forgot posting videos here is not yet possible, here’s a gif of your video:

loginloop

Seems like you need to login on localhost:8081 instead..

I can’t say much more about it as I have no experience with Nuxt and the setup you have is not something I’ve ever seen before, it might be possible but there’s all kinds of security implications if you proxy through something else so I am not surprised it’s not working.

Sorry I can’t be of more help here!

No worries, I appreciate the insight! Would it help if I try to reproduce the issue using a proxy setup like Traefik or Nginx to see if the same behavior occurs? That might help narrow down whether it’s related to the proxy or the Nuxt configuration.

I am personally not familiar, other people might be!

Just remembered something about UseForwardedHeaders that you might need to do behind a reverse proxy, maybe you can find some info on that!

I’m running netCore on windows 11, V16.3.1 and my login is working fine for me. Have logged in and out quite a few times to check and make sure it’s working, and have not had the loading error. Not sure if this helps, but I hope it does.

But are you running Umbraco behind Nuxt? Or just Umbraco on it’s own?

Umbraco on it’s own, forgot to add that. I’m assuming it has something to do with Nuxt, but I’m not familiar with Nuxt at all so I could be wrong.