diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-22 08:24:07 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-25 12:25:59 +0000 |
commit | f0d7a3babca129a8ffd6d7aa4de9aaa74df475ed (patch) | |
tree | 37e622e6d9efc9616d20e83398847f28b9db2671 /perllib/FixMyStreet/App.pm | |
parent | 399a38c4636fac6ce4a2eb21053604ba74309a36 (diff) |
Add configuration for setting CSP header.
This allows you to output a working Content-Security-Policy header, with
optional third-party domains, by setting a new CONTENT_SECURITY_POLICY
configuration option.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 1173523bc..31bf3e400 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -198,7 +198,7 @@ sub setup_request { my $cobrand = $c->cobrand; FixMyStreet::DB->schema->cobrand($cobrand); - $cobrand->call_hook('add_response_headers'); + $cobrand->add_response_headers; # append the cobrand templates to the include path $c->stash->{additional_template_paths} = $cobrand->path_to_web_templates; |