X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=ab5ca00659d03dc56b4a76b1fa7a788d57ccfa5d;hb=f2ea44d7760ab1a725cac836fff9e7cd5c893700;hp=e2f5b0527492e1f88a15226b4ee46b89e5a4de54;hpb=33ee13fe36bce8c6ea1a9aeaca06532eec00286a;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index e2f5b05..ab5ca00 100644 --- a/app.psgi +++ b/app.psgi @@ -12,8 +12,22 @@ use Log::Log4perl; use Tie::Hash::Expire; use constant AUTH_TIMEOUT => 5 * 60; -use constant ACCESSLOG_FORMAT => '%{X-Forwarded-For}i|%h %u "%r" %>s %b "%{Referer}i" "%{User-agent}i"'; -use constant CONTENT_SECURITY_POLICY => q,default-src 'none'; script-src 'self' www.google-analytics.com; style-src 'self'; img-src 'self' www.google-analytics.com; connect-src 'self',; +use constant ACCESSLOG_FORMAT => '%{X-Forwarded-For}i %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"'; + +sub CONTENT_SECURITY_POLICY () { + my $csp = <connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');