-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Folders API return a 403 unauthorized when accessing using "viewLogViewer" Gate (User null) #366
Comments
hey @denistorresan , make sure your Alternatively, you can also set LOG_VIEWER_API_STATEFUL_DOMAINS=localhost:8100,localhost,localhost:8080,myapp.test |
Just FYI, I have added the above to the docs as well, hopefully will help newcomers when setting up Log Viewer to be used in production or any non-standard local setup: https://log-viewer.opcodes.io/docs/3.x/configuration/route-and-domain#production-domains |
Hello,
I found a problem related to API call when APP_ENV = production.
I configured Auth in this way:
This works great when I try to access the /log-viewer routes, but there's some AJAX call inside this page like "/api/folders?direction=desc" that goes on 403 unhautorized because $user is null.
The log-viewer.php configuration about middlewere is the default:
In the following screenshot I'm able to reach the log-viewer page, but the AJAX call fails.
The text was updated successfully, but these errors were encountered: