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

Remove duplicate link. Tweak comment #1862

Merged
merged 1 commit into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@ public function boot()
*/
LogViewer::auth(function ($request) {
// We must disable unsafe-eval because vue3 used by log-viewer requires it.
// We must disable unsafe-inline because log-viewer uses inline script with parameter to boot.
// We must disable unsafe-inline (and hashes) because log-viewer uses inline script with parameter to boot.
// Those parameters are not know by Lychee if someone modifies the config.
// We only do that in that specific case. It is disabled by default otherwise.
config(['secure-headers.csp.script-src.unsafe-eval' => true]);
config(['secure-headers.csp.script-src.unsafe-inline' => true]);
config(['secure-headers.csp.script-src.unsafe-inline' => true]);
config(['secure-headers.csp.script-src.hashes.sha256' => []]);

// Allow to bypass when debug is ON and when env is dev
Expand Down