forked from Kieran/zap.stream
add CSP
This commit is contained in:
parent
7eeec29beb
commit
15e47bde86
2
_headers
Normal file
2
_headers
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*
|
||||||
|
Content-Security-Policy: default-src 'self'; manifest-src *; child-src 'none'; worker-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; connect-src *; img-src * data: blob:; font-src https://fonts.gstatic.com; media-src * blob:; script-src 'self';
|
@ -42,9 +42,11 @@
|
|||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
"chrome >= 67",
|
||||||
"not dead",
|
"edge >= 79",
|
||||||
"not op_mini all"
|
"firefox >= 68",
|
||||||
|
"opera >= 54",
|
||||||
|
"safari >= 14"
|
||||||
],
|
],
|
||||||
"development": [
|
"development": [
|
||||||
"last 1 chrome version",
|
"last 1 chrome version",
|
||||||
|
@ -38,6 +38,7 @@ const config = {
|
|||||||
patterns: [
|
patterns: [
|
||||||
{ from: "public/manifest.json" },
|
{ from: "public/manifest.json" },
|
||||||
{ from: "public/robots.txt" },
|
{ from: "public/robots.txt" },
|
||||||
|
{ from: "_headers" },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
Loading…
Reference in New Issue
Block a user