Skip to content

Commit 977c5d6

Browse files
committed
[skip ci] doc update
1 parent 4dffb23 commit 977c5d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The gem will automatically apply several headers that are related to security.
2525

2626
If you do not supply a `default` configuration, exceptions will be raised. If you would like to use a default configuration (which is fairly locked down), just call `SecureHeaders::Configuration.default` without any arguments or block.
2727

28-
All `nil` values will fallback to their default value. `SecureHeaders::OPT_OUT` will disable the header entirely.
28+
All `nil` values will fallback to their default values. `SecureHeaders::OPT_OUT` will disable the header entirely.
2929

3030
```ruby
3131
SecureHeaders::Configuration.default do |config|
@@ -36,8 +36,12 @@ SecureHeaders::Configuration.default do |config|
3636
config.x_download_options = "noopen"
3737
config.x_permitted_cross_domain_policies = "none"
3838
config.csp = {
39+
# "meta" values. these will shaped the header, but the values are not included in the header.
40+
report_only: true, # default: false
41+
preserve_schemes: true # default: false. Schemes are removed from host sources to save bytes and discourage mixed content.
42+
43+
# directive values: these values will directly translate into source directives
3944
default_src: %w(https: 'self'),
40-
report_only: false,
4145
frame_src: %w('self' *.twimg.com itunes.apple.com),
4246
connect_src: %w(wws:),
4347
font_src: %w('self' data:),

0 commit comments

Comments
 (0)