Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 in production before login #6691

Closed
dalmarcolucas opened this issue Jan 27, 2025 · 3 comments
Closed

403 in production before login #6691

dalmarcolucas opened this issue Jan 27, 2025 · 3 comments
Labels
needs more info More information is required

Comments

@dalmarcolucas
Copy link

  • Laravel Version: 11.34.2
  • Nova Version: 4.35.5
  • PHP Version: 8.2.12

Essentially, in the production environment, I encounter the 403 page even before logging in (it does not even show login page). Here's how the gate function in the NovaServiceProvider is defined:

  protected function gate()
    {
        Gate::define('viewNova', function ($user) {
            return true;
        });
    }

@crynobone
Copy link
Member

Unable to reproduce the issue, please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)

@crynobone crynobone added the needs more info More information is required label Jan 27, 2025
@dalmarcolucas
Copy link
Author

@crynobone Unfortunately, I can’t share the repository. I understand this is likely something specific to my project, but I haven’t found any other resources to check apart from the gate section in the Nova documentation. Do you have any suggestions on where else I could look?

@crynobone
Copy link
Member

We don't know of any use case that might cause it.

The only recent report was #6674 (comment) and the user solved it themselves without sharing the actual reproducing step.

@laravel laravel locked and limited conversation to collaborators Jan 27, 2025
@crynobone crynobone converted this issue into discussion #6692 Jan 27, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
needs more info More information is required
Projects
None yet
Development

No branches or pull requests

2 participants