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: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,8 @@ This `CspHtmlWebpackPlugin` accepts 2 params with the following structure:
83
83
- The `htmlPluginData` is passed into the function as it's first param.
84
84
- If `enabled` is set the false, it will disable generating a CSP for all instances of `HtmlWebpackPlugin` in your webpack config.
85
85
-`{string}` hashingMethod - accepts 'sha256', 'sha384', 'sha512' - your node version must also accept this hashing method.
86
-
-`{object}` hashEnabled - a `<string, boolean>` entry for which policy rules are allowed to include hashes
87
-
-`{object}` nonceEnabled - a `<string, boolean>` entry for which policy rules are allowed to include nonces
86
+
-`{boolean|object}` hashEnabled - a `<string, boolean>` entry for which policy rules are allowed to include hashes, or a single boolean value to apply to all policy rules
87
+
-`{boolean|object}` nonceEnabled - a `<string, boolean>` entry for which policy rules are allowed to include nonces, or a single boolean value to apply to all policy rules
88
88
-`{Function}` processFn - allows the developer to overwrite the default method of what happens to the CSP after it has been created
89
89
- Parameters are:
90
90
-`builtPolicy`: a `string` containing the completed policy;
0 commit comments