X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=a4e0c34eca7da9c880ec0ee496a8e24e2be310c9;hb=a0aa934a68a90d784546588383363bdaed2f0bfb;hp=e2f5b0527492e1f88a15226b4ee46b89e5a4de54;hpb=997125c4cde4b3b6ef8a71c5ab468f84b1e239a0;p=gruntmaster-page.git diff --git a/app.psgi b/app.psgi index e2f5b05..a4e0c34 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:');