Skip to content
Snippets Groups Projects
Commit 63969e68 authored by Geoff Appleby's avatar Geoff Appleby
Browse files

Add referrer to list of valid directive names

parent 3be905fa
No related branches found
Tags 8.x-1.1
No related merge requests found
......@@ -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,
];
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment