mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Add option to disable the X-Frame header
This commit is contained in:
@@ -146,6 +146,10 @@ WINDOWS_SSO_KEY=${WINDOWS_SSO_KEY}
|
||||
# field to sync as local username.
|
||||
ADLDAP_SYNC_FIELD=${ADLDAP_SYNC_FIELD}
|
||||
|
||||
# You can disable the X-Frame-Options header if it interfears with tools like
|
||||
# Organizr. This is at your own risk.
|
||||
DISABLE_FRAME_HEADER=${DISABLE_FRAME_HEADER}
|
||||
|
||||
# Leave the following configuration vars as is.
|
||||
# Unless you like to tinker and know what you're doing.
|
||||
APP_NAME=FireflyIII
|
||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
||||
# field to sync as local username.
|
||||
ADLDAP_SYNC_FIELD=userprincipalname
|
||||
|
||||
# You can disable the X-Frame-Options header if it interfears with tools like
|
||||
# Organizr. This is at your own risk.
|
||||
DISABLE_FRAME_HEADER=false
|
||||
|
||||
# Leave the following configuration vars as is.
|
||||
# Unless you like to tinker and know what you're doing.
|
||||
APP_NAME=FireflyIII
|
||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
||||
# field to sync as local username.
|
||||
ADLDAP_SYNC_FIELD=userprincipalname
|
||||
|
||||
# You can disable the X-Frame-Options header if it interfears with tools like
|
||||
# Organizr. This is at your own risk.
|
||||
DISABLE_FRAME_HEADER=false
|
||||
|
||||
# Leave the following configuration vars as is.
|
||||
# Unless you like to tinker and know what you're doing.
|
||||
APP_NAME=FireflyIII
|
||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
||||
# field to sync as local username.
|
||||
ADLDAP_SYNC_FIELD=userprincipalname
|
||||
|
||||
# You can disable the X-Frame-Options header if it interfears with tools like
|
||||
# Organizr. This is at your own risk.
|
||||
DISABLE_FRAME_HEADER=true
|
||||
|
||||
# Leave the following configuration vars as is.
|
||||
# Unless you like to tinker and know what you're doing.
|
||||
APP_NAME=FireflyIII
|
||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
||||
# field to sync as local username.
|
||||
ADLDAP_SYNC_FIELD=userprincipalname
|
||||
|
||||
# You can disable the X-Frame-Options header if it interfears with tools like
|
||||
# Organizr. This is at your own risk.
|
||||
DISABLE_FRAME_HEADER=false
|
||||
|
||||
# Leave the following configuration vars as is.
|
||||
# Unless you like to tinker and know what you're doing.
|
||||
APP_NAME=FireflyIII
|
||||
|
@@ -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