]> iEval git - gruntmaster-page.git/blobdiff - app.psgi
Add final standings for 2015
[gruntmaster-page.git] / app.psgi
index b29127c24e3e1375ae8e65ea4c3ddddf98930beb..a13a73e4965ba82ca2d26b8a40a8c094d2bb3094 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -14,7 +14,7 @@ default-src 'none'
 connect-src 'self'
 form-action 'self'
 frame-ancestors 'none'
-img-src 'self'
+img-src 'self' https://static.mindcoding.ro
 referrer origin-when-cross-origin
 script-src 'self'
 style-src 'self'
@@ -41,7 +41,6 @@ sub add_headers {
                my $resp = $app->($_[0]);
                my $hdrs = Plack::Util::headers($resp->[1]);
                $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY);
-               $hdrs->set('Cache-Control', 'public, max-age=604800') if $_[0]->{PATH_INFO} =~ qr,^/static/,;
                $resp->[1] = $hdrs->headers;
                $resp;
        }
@@ -54,7 +53,6 @@ builder {
        enable_if { $_[0]->{PATH_INFO} eq '/ok' } sub { sub{ [200, [], []] }};
        enable 'ContentLength';
        enable \&add_headers;
-       enable 'Static', path => qr,^/static/,;
        enable 'Log4perl', category => 'plack';
        enable \&add_database;
        enable '+Plack::App::Gruntmaster::Auth',
This page took 0.024613 seconds and 4 git commands to generate.