Skip to content
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

LogViewer::auth not working behind proxy #396

Open
btxtiger opened this issue Oct 2, 2024 · 0 comments
Open

LogViewer::auth not working behind proxy #396

btxtiger opened this issue Oct 2, 2024 · 0 comments

Comments

@btxtiger
Copy link

btxtiger commented Oct 2, 2024

Not sure why it is the case, but when Laravel runs with Octane as reverse proxy (in production),

\LogViewer::auth(fn () => auth()->check());

does not work and always leads to a 403 error, while

\Gate::define("viewLogViewer", fn () => auth()->check());

works fine.

PHP-FPM did not have this issue. I tested if it is a remote_addr related thing, by mapping it to the real IP instead of the Docker IP (real_ip_header X-Forwarded-For;), but it didn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant