mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add option to disable the X-Frame header
This commit is contained in:
@@ -76,7 +76,10 @@ class SecureHeaders
|
||||
"payment 'none'",
|
||||
];
|
||||
|
||||
$response->header('X-Frame-Options', 'deny');
|
||||
$disableFrameHeader = env('DISABLE_FRAME_HEADER');
|
||||
if (false === $disableFrameHeader || null === $disableFrameHeader) {
|
||||
$response->header('X-Frame-Options', 'deny');
|
||||
}
|
||||
$response->header('Content-Security-Policy', implode('; ', $csp));
|
||||
$response->header('X-XSS-Protection', '1; mode=block');
|
||||
$response->header('X-Content-Type-Options', 'nosniff');
|
||||
|
||||
Reference in New Issue
Block a user