Skip to content

403 error when using two subdomains #6674

@ricardomartos

Description

@ricardomartos
  • Laravel Version: 11.38.2
  • Nova Version: 4.35.5
  • PHP Version: 8.3.6
  • Database Driver & Version: PostgreSQL 15
  • Operating System and Version: Ubuntu 24.04.1
  • Browser type and version: Brave 1.73.105

Description:

When using multiple subDomains ( subDomain1.subDomain2.domain.com ) I can access the nova dashboard when in development/production model of the app.
My license key has the "domain.com" domain (I can't put the real domain for legal reasons)

php artisan nova:check-license displays on development and production mode:

Your license key is valid and correctly configured! Thank you for being a Nova customer. 🚀

APP_ENV=development a license key tagged development, doesn't works

APP_ENV=production with the main license key, doesn't works

The server is using dev.xxxxxx.domain.com

I'm using the provided Nova Gate:

protected function gate() { Gate::define('viewNova', function ($user) { return in_array($user->email, [ '[email protected]' ]); }); }

Being the email a valid user email in the DB.

If I switch to APP_ENV=local , it works (of course)

That's all info I can provide publicly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions