Skip to content

Commit

Permalink
move noreferrer policy to hardend mode
Browse files Browse the repository at this point in the history
This probably fixes #143
  • Loading branch information
splitbrain committed Mar 24, 2024
1 parent 0521e21 commit 08b6034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public function iframe($data, $element = 'iframe')
'frameborder' => 0,
'scrolling' => 'no',
'data-domain' => $data['domain'],
'referrerpolicy' => 'no-referrer',
'loading' => 'lazy',
];
if ($this->getConf('extrahard')) {
Expand Down Expand Up @@ -297,7 +296,8 @@ protected function hardenedIframeAttributes()
'credentialless' => '',
'sandbox' => 'allow-scripts allow-same-origin',
'allow' => $disallow,
'csp' => 'sandbox allow-scripts allow-same-origin'
'csp' => 'sandbox allow-scripts allow-same-origin',
'referrerpolicy' => 'no-referrer',
];
}
}

0 comments on commit 08b6034

Please sign in to comment.