Commit 92308c08 authored by Reed Loden's avatar Reed Loden

Bug 680771 - Send X-XSS-Protection header for XSS prevention/blocking

[r=mkanat a=LpSolit]
parent 2e197568
......@@ -306,6 +306,10 @@ sub header {
unshift(@_, '-x_frame_options' => 'SAMEORIGIN');
}
# Add X-XSS-Protection header to prevent simple XSS attacks
# and enforce the blocking (rather than the rewriting) mode.
unshift(@_, '-x_xss_protection' => '1; mode=block');
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