Request failed with status code 403: Unauthorized. #353
Unanswered
haris-pixleedge
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Hey @haris-pixleedge From my experience this is most likely to do with "stateful domains". By default, it will only allow access from the domain (or subdomain) defined in the Here's what you should do:
LOG_VIEWER_API_STATEFUL_DOMAINS=example.com,www.example.com OR, just update your Let me know how it goes! |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Log viewer working fine on localhost but get Unauthorized error on production although route is working but can't see the log file due to error.
I've also added the Log viewer Auth to restrict the access in AppServiceProvider:
LogViewer::auth(function ($request) { return $request->user() && in_array($request->user()->email, [ '[email protected]', ]); });
Here is my config/log-viewer file:
`<?php
return [
];
`
Beta Was this translation helpful? Give feedback.
All reactions