From 1001c2d840d5ec2a10eac8f6b15a601167dbe19a Mon Sep 17 00:00:00 2001 From: vato007 Date: Mon, 28 Oct 2024 12:53:36 +1030 Subject: [PATCH] Improve site security by applying mozilla recommendations --- _headers | 3 +++ build.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 _headers diff --git a/_headers b/_headers new file mode 100644 index 0000000..0995a4d --- /dev/null +++ b/_headers @@ -0,0 +1,3 @@ +/* + Content-Security-Policy: default-src 'self' + X-Content-Type-Options: nosniff \ No newline at end of file diff --git a/build.sh b/build.sh index 29f8ccd..cca88da 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ mkdir -p build/@picocss/pico/css/ -cp *.png *.xml *.svg *.css *.webmanifest *.ico robots.txt build +cp *.png *.xml *.svg *.css *.webmanifest *.ico robots.txt _headers build # https://github.com/cloudflare/workers-sdk/issues/3615 sed 's/node_modules\///' index.html > build/index.html cp node_modules/@picocss/pico/css/pico.min.css build/@picocss/pico/css/ \ No newline at end of file