diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-29 17:10:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-29 17:10:32 +0100 |
commit | 07d3568a02b5efb4286bccd9f869c8e1605928b5 (patch) | |
tree | 85770a4d1d8745a06b3bb8849c5444bb200f5693 /perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |
parent | 759b5ef970546c0a70fb4f8d051b1f6dd54e4d2d (diff) | |
parent | 77d4d7096a3f0f83e5c19260a320fd2b11455a48 (diff) |
Merge branch 'some-dev-improvements'
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 1052bac0e..c50721334 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -21,6 +21,8 @@ sub path_to_email_templates { sub add_response_headers { my $self = shift; + # uncoverable branch true + return if $self->{c}->debug; my $csp_nonce = $self->{c}->stash->{csp_nonce} = unpack('h*', mySociety::Random::random_bytes(16, 1)); $self->{c}->res->header('Content-Security-Policy', "script-src 'self' www.google-analytics.com www.googleadservices.com 'unsafe-inline' 'nonce-$csp_nonce'") } |