You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## 8.0.0
4
4
5
+
### Changed
6
+
7
+
-**Breaking:**`Content-Security-Policy` middleware now throws an error if a directive should have quotes but does not, such as `self` instead of `'self'`. See [#454](https://github.com/helmetjs/helmet/issues/454)
8
+
5
9
### Removed
6
10
7
11
-**Breaking:** Drop support for Node 16 and 17. Node 18+ is now required
`Content-Security-Policy got directive value \`${value}\` which should be single-quoted and changed to \`'${value}'\`. This will be an error in future versions of Helmet.`,
`Content-Security-Policy got directive value \`${directiveValue}\` which should be single-quoted and changed to \`'${directiveValue}'\`. This will be an error in future versions of Helmet.`,
378
-
);
379
-
}
380
-
});
381
-
382
373
it("errors if any directive values are invalid when a function returns",async()=>{
`Content-Security-Policy got directive value \`${directiveValue}\` which should be single-quoted and changed to \`'${directiveValue}'\`. This will be an error in future versions of Helmet.`,
434
-
);
435
-
}
403
+
awaitsupertest(app).get("/").expect(500,{
404
+
helmetTestError: true,
405
+
message:
406
+
'Content-Security-Policy received an invalid directive value for "default-src"',
0 commit comments