mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +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.
|
# field to sync as local username.
|
||||||
ADLDAP_SYNC_FIELD=${ADLDAP_SYNC_FIELD}
|
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.
|
# Leave the following configuration vars as is.
|
||||||
# Unless you like to tinker and know what you're doing.
|
# Unless you like to tinker and know what you're doing.
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
|||||||
# field to sync as local username.
|
# field to sync as local username.
|
||||||
ADLDAP_SYNC_FIELD=userprincipalname
|
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.
|
# Leave the following configuration vars as is.
|
||||||
# Unless you like to tinker and know what you're doing.
|
# Unless you like to tinker and know what you're doing.
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
|||||||
# field to sync as local username.
|
# field to sync as local username.
|
||||||
ADLDAP_SYNC_FIELD=userprincipalname
|
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.
|
# Leave the following configuration vars as is.
|
||||||
# Unless you like to tinker and know what you're doing.
|
# Unless you like to tinker and know what you're doing.
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
|||||||
# field to sync as local username.
|
# field to sync as local username.
|
||||||
ADLDAP_SYNC_FIELD=userprincipalname
|
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.
|
# Leave the following configuration vars as is.
|
||||||
# Unless you like to tinker and know what you're doing.
|
# Unless you like to tinker and know what you're doing.
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
|
@@ -147,6 +147,10 @@ WINDOWS_SSO_KEY=AUTH_USER
|
|||||||
# field to sync as local username.
|
# field to sync as local username.
|
||||||
ADLDAP_SYNC_FIELD=userprincipalname
|
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.
|
# Leave the following configuration vars as is.
|
||||||
# Unless you like to tinker and know what you're doing.
|
# Unless you like to tinker and know what you're doing.
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
|
@@ -76,7 +76,10 @@ class SecureHeaders
|
|||||||
"payment 'none'",
|
"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('Content-Security-Policy', implode('; ', $csp));
|
||||||
$response->header('X-XSS-Protection', '1; mode=block');
|
$response->header('X-XSS-Protection', '1; mode=block');
|
||||||
$response->header('X-Content-Type-Options', 'nosniff');
|
$response->header('X-Content-Type-Options', 'nosniff');
|
||||||
|
Reference in New Issue
Block a user