Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csp-3398535
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
csp-3398535
Commits
63969e68
Commit
63969e68
authored
6 years ago
by
Geoff Appleby
Browse files
Options
Downloads
Patches
Plain Diff
Add referrer to list of valid directive names
parent
3be905fa
No related branches found
Branches containing commit
Tags
8.x-1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Csp.php
+4
-0
4 additions, 0 deletions
src/Csp.php
with
4 additions
and
0 deletions
src/Csp.php
+
4
−
0
View file @
63969e68
...
...
@@ -71,6 +71,10 @@ class Csp {
'block-all-mixed-content'
=>
self
::
DIRECTIVE_SCHEMA_BOOLEAN
,
'require-sri-for'
=>
self
::
DIRECTIVE_SCHEMA_TOKEN_LIST
,
'upgrade-insecure-requests'
=>
self
::
DIRECTIVE_SCHEMA_BOOLEAN
,
// Deprecated directives.
// Referrer isn't in the Level 1 spec, but was accepted until Chrome 56 and
// Firefox 62.
'referrer'
=>
self
::
DIRECTIVE_SCHEMA_TOKEN
,
];
/**
...
...
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