Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wildyeast's avatar

Nova login fails with 409 error

I have deployed a Laravel app using forge and I'm running nova on a subdomain. When I try to login with correct email/password combination, nova requests https://my.sub.domain/dashboards/main but fails with a 409 error, then reloads the login page.

Screenshot

When I enter an incorrect email/password combination, the auth.failed message is displayed as expected. Whether or not an email address is entered in the Nova guard array does not make a difference. On my local installation everything works fine.

Please let me know if you have any idea on how to debug this!

0 likes
1 reply
wildyeast's avatar
wildyeast
OP
Best Answer
Level 1

The solution was to update the URLs in .env to the production domain. These are the fields in .env relevant to running Nova on a subdomain:

NOVA_DOMAIN_NAME=sub.domain.com SANCTUM_STATEFUL_DOMAINS=domain.com SPA_URL=https://domain.com SESSION_DOMAIN=.domain.com

Additionally, the path in config/nova.php has to be set to root: 'path' => '/',

You'll also have to tell your webserver to route sub.domain.com to the correct location.

Please or to participate in this conversation.