Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
6c54a4ab
Commit
6c54a4ab
authored
Jan 17, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
Jan 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1734767: Add HTTP Strict Transport Security (HSTS) header"
parents
287814bc
56ff87df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
htdocs/init.php
htdocs/init.php
+3
-1
No files found.
htdocs/init.php
View file @
6c54a4ab
...
...
@@ -359,7 +359,9 @@ if (!defined('CLI')) {
header
(
'X-XSS-Protection: 1; mode=block'
);
header
(
'X-Content-Type-Options: nosniff'
);
header
(
'X-Permitted-Cross-Domain-Policies: master-only'
);
if
(
is_https
())
{
header
(
'Strict-Transport-Security: max-age=63072000'
);
}
// Don't print precise PHP version as an HTTP header
header_remove
(
'x-powered-by'
);
}
...
...
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