Fix #78 Add CSP Header

+ update morris and raphael graph libraries
+ some changes in "myfiles" table
This commit is contained in:
Luc Didry
2018-05-08 15:59:21 +02:00
parent acf0ec75e7
commit 83a8fbeeeb
32 changed files with 287 additions and 155 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ BEGIN {
my $t = Test::Mojo->new('Lutim');
$t->get_ok('/')
->status_is(200)
->content_like(qr/Let's Upload That IMage/i);
->content_like(qr/Let's Upload That IMage/i)
->header_is('Content-Security-Policy' => "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'");
# Gzip static assets
$t->get_ok('/css/lutim.css')