Improve site security by applying mozilla recommendations
This commit is contained in:
3
_headers
Normal file
3
_headers
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/*
|
||||||
|
Content-Security-Policy: default-src 'self'
|
||||||
|
X-Content-Type-Options: nosniff
|
||||||
2
build.sh
2
build.sh
@@ -1,5 +1,5 @@
|
|||||||
mkdir -p build/@picocss/pico/css/
|
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
|
# https://github.com/cloudflare/workers-sdk/issues/3615
|
||||||
sed 's/node_modules\///' index.html > build/index.html
|
sed 's/node_modules\///' index.html > build/index.html
|
||||||
cp node_modules/@picocss/pico/css/pico.min.css build/@picocss/pico/css/
|
cp node_modules/@picocss/pico/css/pico.min.css build/@picocss/pico/css/
|
||||||
Reference in New Issue
Block a user