mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-30 00:41:33 +00:00
block iframe embedding
protects against clickjacking attacks. I'm not sure if we have any data worth jacking (maybe the youtube form?) but we may in the future.
This commit is contained in:
parent
9e1eb20e96
commit
443543dba9
1 changed files with 4 additions and 4 deletions
|
@ -249,10 +249,10 @@ class Response
|
|||
public static function setDefaultSecurityHeaders()
|
||||
{
|
||||
$defaultHeaders = [
|
||||
//'Content-Security-Policy' => "frame-ancestors 'none'",
|
||||
//'X-Frame-Options' => 'DENY',
|
||||
'X-XSS-Protection' => '1',
|
||||
];
|
||||
'Content-Security-Policy' => "frame-ancestors 'none'",
|
||||
'X-Frame-Options' => 'DENY',
|
||||
'X-XSS-Protection' => '1',
|
||||
];
|
||||
|
||||
if (IS_PRODUCTION) {
|
||||
$defaultHeaders['Strict-Transport-Security'] = 'max-age=31536000';
|
||||
|
|
Loading…
Add table
Reference in a new issue