Skip to content

Laravel License check gives 403 forbidden on non-local environments that do not match standard naming convention #6888

@techgaun

Description

@techgaun
  • Laravel Version: 11.45.0
  • Nova Version: 4.35.10
  • PHP Version: 8.3.15
  • Database Driver & Version: mysql 8.0.40
  • Operating System and Version: ECS Fargate / Docker Container using serversideup/php:8.3-fpm-nginx-alpine-v3.5.2
  • Browser type and version: Chrome 137.0.7151.120
  • Reproduction Repository: https://github.com/###/###

Description:

  • We are using non-standard staging URL configured with a license key.
  • We have run license check and received the message that the license is valid
  • We have a middleware running that performs auth
  • The gate for authorization has been simplified since the middleware is responsible for auth
protected function gate()
    {
        Gate::define('viewNova', function ($user) {
            return true;
        });
    }
  • We have tested APP_ENV with staging - gives 403 forbidden
  • We have tested APP_ENV with local - works fine
  • We have also done extensive checks by enabling/disabling each middleware to rule out if any middleware is a problem but it does not seem to be

Detailed steps to reproduce the issue on a fresh Nova installation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions