Commit c9c81ee7 authored by Reed Loden's avatar Reed Loden

Bug 475894 - Send the 'X-Frame-Options: SAMEORIGIN' header to help protect against clickjacking.

[r=mkanat a=mkanat]
parent 374ee5c8
......@@ -287,6 +287,12 @@ sub header {
unshift(@_, '-strict_transport_security' => $sts_opts);
}
# Add X-Frame-Options header to prevent framing and subsequent
# possible clickjacking problems.
unless ($self->url_is_attachment_base) {
unshift(@_, '-x_frame_options' => 'SAMEORIGIN');
}
return $self->SUPER::header(@_) || "";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment