Skip to content

Commit e8059e8

Browse files
committed
Bug 2009883:
1 parent fb66f60 commit e8059e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Bugzilla/App.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ sub startup {
181181
$res->headers->header('Referrer-policy' => 'same-origin');
182182
}
183183

184+
# Add Cross-Origin-Opener-Policy header if not already set
185+
# This header controls the relationship between browsing contexts
186+
# to prevent cross-origin attacks like Spectre.
187+
$res->headers->header(
188+
'Cross-Origin-Opener-Policy' => 'same-origin-allow-popups');
189+
184190
unless ($res->headers->content_security_policy) {
185191
if (my $csp = $c->content_security_policy) {
186192
$res->headers->header($csp->header_name, $csp->value);

0 commit comments

Comments
 (0)