Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
387d46cb
Commit
387d46cb
authored
11 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Patches
Plain Diff
Typo + Line breaks
parent
b04d95b1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/base.php
+3
-5
3 additions, 5 deletions
lib/base.php
with
3 additions
and
5 deletions
lib/base.php
+
3
−
5
View file @
387d46cb
...
@@ -214,11 +214,9 @@ class OC {
...
@@ -214,11 +214,9 @@ class OC {
}
}
/*
/*
* This function adds some security related headers to all requests
* This function adds some security related headers to all requests served via base.php
* served via base.php
* The implementation of this function as hto happen here to ensure that all third-party
* The implementation of this function as to happen here to ensure that
* components (e.g. SabreDAV) also benefit from this headers.
* all third-party components (e.g. SabreDAV) also benefit from this
* headers
*/
*/
public
static
function
addSecurityHeaders
()
{
public
static
function
addSecurityHeaders
()
{
header
(
'X-XSS-Protection: 1; mode=block'
);
// Enforce browser based XSS filters
header
(
'X-XSS-Protection: 1; mode=block'
);
// Enforce browser based XSS filters
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment