Skip to content

Commit 1fa2083

Browse files
authored
Merge pull request #409 from ghiculescu/patch-2
Document `disable_nonce_backwards_compatibility`
2 parents b18d3eb + 71ce42e commit 1fa2083

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ SecureHeaders::Configuration.default do |config|
5757
config.csp = {
5858
# "meta" values. these will shape the header, but the values are not included in the header.
5959
preserve_schemes: true, # default: false. Schemes are removed from host sources to save bytes and discourage mixed content.
60+
disable_nonce_backwards_compatibility: true, # default: false. If false, `unsafe-inline` will be added automatically when using nonces. If true, it won't. See #403 for why you'd want this.
6061

6162
# directive values: these values will directly translate into source directives
6263
default_src: %w('none'),

0 commit comments

Comments
 (0)