Add X-Frame-Options header to .htaccess
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
11cf253f52
commit
76cbd7db6e
|
@ -17,6 +17,7 @@
|
||||||
Header set X-Download-Options "noopen"
|
Header set X-Download-Options "noopen"
|
||||||
Header set X-Permitted-Cross-Domain-Policies "none"
|
Header set X-Permitted-Cross-Domain-Policies "none"
|
||||||
Header set Referrer-Policy "no-referrer"
|
Header set Referrer-Policy "no-referrer"
|
||||||
|
Header set X-Frame-Options "SAMEORIGIN"
|
||||||
SetEnv modHeadersAvailable true
|
SetEnv modHeadersAvailable true
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,6 @@ class OC_Response {
|
||||||
. 'object-src \'none\'; '
|
. 'object-src \'none\'; '
|
||||||
. 'base-uri \'self\'; ';
|
. 'base-uri \'self\'; ';
|
||||||
header('Content-Security-Policy:' . $policy);
|
header('Content-Security-Policy:' . $policy);
|
||||||
header('X-Frame-Options: SAMEORIGIN'); // Disallow iFraming from other domains
|
|
||||||
|
|
||||||
// Send fallback headers for installations that don't have the possibility to send
|
// Send fallback headers for installations that don't have the possibility to send
|
||||||
// custom headers on the webserver side
|
// custom headers on the webserver side
|
||||||
|
@ -105,6 +104,7 @@ class OC_Response {
|
||||||
header('X-Download-Options: noopen'); // https://msdn.microsoft.com/en-us/library/jj542450(v=vs.85).aspx
|
header('X-Download-Options: noopen'); // https://msdn.microsoft.com/en-us/library/jj542450(v=vs.85).aspx
|
||||||
header('X-Permitted-Cross-Domain-Policies: none'); // https://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-streaming.html
|
header('X-Permitted-Cross-Domain-Policies: none'); // https://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-streaming.html
|
||||||
header('Referrer-Policy: no-referrer'); // https://www.w3.org/TR/referrer-policy/
|
header('Referrer-Policy: no-referrer'); // https://www.w3.org/TR/referrer-policy/
|
||||||
|
header('X-Frame-Options: SAMEORIGIN'); // Disallow iFraming from other domains
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue