diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-15 14:37:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-16 18:39:35 +0100 |
commit | 05f6e047cbce6dac05342659bd5f21ffcd88e833 (patch) | |
tree | 6a0ac667fdcbe99d153f941dcd5b8efa387997cc /perllib/FixMyStreet/App.pm | |
parent | bef9203e2380df25372e3f8aa7c763a72ec4aa5a (diff) |
[fixmystreet.com] Add Content-Security-Policy.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 3cbe1422f..4036e85ab 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -6,7 +6,6 @@ use Catalyst::Runtime 5.80; use FixMyStreet; use FixMyStreet::Cobrand; use Memcached; -use mySociety::Random qw(random_bytes); use FixMyStreet::Map; use FixMyStreet::Email; use Utils; @@ -161,6 +160,8 @@ sub setup_request { my $cobrand = $c->cobrand; + $cobrand->add_response_headers if $cobrand->can('add_response_headers'); + # append the cobrand templates to the include path $c->stash->{additional_template_paths} = $cobrand->path_to_web_templates; |