csp-html-webpack-plugin icon indicating copy to clipboard operation
csp-html-webpack-plugin copied to clipboard

Allow nonceEnabled and hashEnabled to take single boolean values

Open StephanBijzitter opened this issue 4 years ago • 2 comments

Summary

Providing a single boolean value to either of these options will now apply the value to each provided policy directive.

Closes slackhq/csp-html-webpack-plugin#98

Requirements (place an x in each [ ])

StephanBijzitter avatar Sep 15 '21 13:09 StephanBijzitter

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 15 '21 13:09 CLAassistant

I haven't written any new tests as the existing tests already cover this functionality because of my change to the default values.

If wanted, I could add specific test-cases to handle the 4 shorthand values.

StephanBijzitter avatar Sep 15 '21 13:09 StephanBijzitter