From: Marius Gavrilescu Date: Wed, 1 Apr 2015 13:58:55 +0000 (+0300) Subject: Drop cloudflare X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=0f623f3d41b33606db73af07c12161320ed4aa93;p=gruntmaster-page.git Drop cloudflare --- diff --git a/app.psgi b/app.psgi index 597e941..6a1125a 100644 --- a/app.psgi +++ b/app.psgi @@ -16,8 +16,8 @@ form-action 'self' frame-ancestors 'none' img-src 'self' https://static.mindcoding.ro referrer origin-when-cross-origin -script-src https://static.mindcoding.ro/static/js.js -style-src https://static.mindcoding.ro/static/css/ +script-src 'self' +style-src 'self' CSP chomp $csp; $csp =~ s/\n/; /gr; @@ -41,7 +41,7 @@ sub add_headers { my $resp = $app->($_[0]); my $hdrs = Plack::Util::headers($resp->[1]); $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY); - $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; + $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; $resp->[1] = $hdrs->headers; $resp; } diff --git a/make_static.PL b/make_static.PL index f0fa945..489652a 100644 --- a/make_static.PL +++ b/make_static.PL @@ -28,7 +28,7 @@ sub make_sprite { $maker->print_css( filename => 'css/logos.css', - sprite_filename => 'https://static.mindcoding.ro/static/logos.png', + sprite_filename => '/static/logos.png', ); system 'pngnq-s9', '-s1', 'static/logos.png'; @@ -96,7 +96,7 @@ sub _get_stylesheet_string { @ret = sort @ret; unshift @ret, < - - - - - + + + + +