@middy/http-security-headers 7.0.0-alpha.2 → 7.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const defaults = {
|
|
|
7
7
|
// Fetch directives
|
|
8
8
|
// 'child-src': '', // fallback default-src
|
|
9
9
|
// 'connect-src': '', // fallback default-src
|
|
10
|
-
"default-src": "'
|
|
10
|
+
"default-src": "'report-sample' 'report-sha256'",
|
|
11
11
|
// 'font-src':'', // fallback default-src
|
|
12
12
|
// 'frame-src':'', // fallback child-src > default-src
|
|
13
13
|
// 'img-src':'', // fallback default-src
|
|
@@ -28,12 +28,10 @@ const defaults = {
|
|
|
28
28
|
// Navigation directives
|
|
29
29
|
"form-action": "'none'",
|
|
30
30
|
"frame-ancestors": "'none'",
|
|
31
|
-
"navigate-to": "'none'",
|
|
32
31
|
// Reporting directives
|
|
33
32
|
"report-to": "default",
|
|
34
33
|
// Other directives
|
|
35
34
|
"require-trusted-types-for": "'script'",
|
|
36
|
-
"trusted-types": "'none'",
|
|
37
35
|
"upgrade-insecure-requests": "",
|
|
38
36
|
},
|
|
39
37
|
contentSecurityPolicyReportOnly: false,
|
|
@@ -80,6 +78,7 @@ const defaults = {
|
|
|
80
78
|
magnetometer: "",
|
|
81
79
|
microphone: "",
|
|
82
80
|
midi: "",
|
|
81
|
+
monetization: "",
|
|
83
82
|
"navigation-override": "",
|
|
84
83
|
payment: "",
|
|
85
84
|
"picture-in-picture": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-security-headers",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.3",
|
|
4
4
|
"description": "Applies best practice security headers to responses. It's a simplified port of HelmetJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
},
|
|
69
69
|
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431",
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@middy/util": "7.0.0-alpha.
|
|
71
|
+
"@middy/util": "7.0.0-alpha.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@middy/core": "7.0.0-alpha.
|
|
74
|
+
"@middy/core": "7.0.0-alpha.3"
|
|
75
75
|
}
|
|
76
76
|
}
|