Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c9c81ee7
Commit
c9c81ee7
authored
Dec 18, 2010
by
Reed Loden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 475894 - Send the 'X-Frame-Options: SAMEORIGIN' header to help protect against clickjacking.
[r=mkanat a=mkanat]
parent
374ee5c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
CGI.pm
Bugzilla/CGI.pm
+6
-0
No files found.
Bugzilla/CGI.pm
View file @
c9c81ee7
...
...
@@ -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
(
@_
)
||
""
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment