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
Content-Security-Policy: better error when value should be quoted
It's easy to forget to quote directive value entries like `'self'` and
`'none'`. Someone [recently ran into this][0] and was confused by the
error message.
This makes the error message clearer by telling you that something needs
to be quoted.
```diff
-...invalid directive value for "img-src"
+...invalid directive value for "img-src". "self" should be quoted
```
[0]: #482
Copy file name to clipboardexpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
5
+
### Changed
6
+
7
+
-`Content-Security-Policy` gives a better error when a directive value, like `self`, should be quoted. See [#482](https://github.com/helmetjs/helmet/issues/482)
0 commit comments