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
Added the ability to get all available options for any directive and for those that are dynamic, provides a schema that lets you scaffold a compliant string.
Copy file name to clipboardExpand all lines: README.md
+43-3Lines changed: 43 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
[](https://libraries.io/npm/csp-typed-directives)
9
9
[](https://openbase.com/js/csp-typed-directives?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)
Provides type information for all CSP directives and related headers' directives; as well as a basic utility funtion that helps convert the typed properties to key/values of each header content's policy string.
14
14
@@ -31,7 +31,7 @@ Either pass your CSP directives in at instatiation, or after.
For reading up on the descriptions and implications of all directives see [Mozilla's CSP documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)
97
97
98
+
### Iterate over all available directives
99
+
100
+
This also provides a map of constants of every available directive name and the category(s) of souces/directives it can be assigned.
0 commit comments