From b0db2399b84278e64ef70811f8cc0c3d7f1e1ff3 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 2 Oct 2022 12:38:14 +0300 Subject: [PATCH] updated filesystem tests --- tools/filesystem/filesystem_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/filesystem/filesystem_test.go b/tools/filesystem/filesystem_test.go index 89fa78dc..d6998079 100644 --- a/tools/filesystem/filesystem_test.go +++ b/tools/filesystem/filesystem_test.go @@ -180,7 +180,7 @@ func TestFileSystemServe(t *testing.T) { "Content-Disposition": "attachment; filename=test_name.txt", "Content-Type": "application/octet-stream", "Content-Length": "0", - "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; sandbox", + "Content-Security-Policy": "default-src 'none'; media-src 'self'; style-src 'unsafe-inline'; sandbox", }, }, { @@ -192,7 +192,7 @@ func TestFileSystemServe(t *testing.T) { "Content-Disposition": "inline; filename=test_name.png", "Content-Type": "image/png", "Content-Length": "73", - "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; sandbox", + "Content-Security-Policy": "default-src 'none'; media-src 'self'; style-src 'unsafe-inline'; sandbox", }, }, { @@ -204,7 +204,7 @@ func TestFileSystemServe(t *testing.T) { "Content-Disposition": "attachment; filename=test_name.svg", "Content-Type": "image/svg+xml", "Content-Length": "0", - "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; sandbox", + "Content-Security-Policy": "default-src 'none'; media-src 'self'; style-src 'unsafe-inline'; sandbox", }, }, { @@ -216,7 +216,7 @@ func TestFileSystemServe(t *testing.T) { "Content-Disposition": "attachment; filename=test_name.css", "Content-Type": "text/css", "Content-Length": "0", - "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; sandbox", + "Content-Security-Policy": "default-src 'none'; media-src 'self'; style-src 'unsafe-inline'; sandbox", }, }, }