Skip to content

Commit 5cc33e5

Browse files
committed
Update reame to use new config idiom
1 parent 06fce94 commit 5cc33e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ use SecureHeaders::Middleware
4949

5050
## Configuration
5151

52-
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.
52+
If you do not supply a configuration, a default (which is fairly locked down) will be used.
5353

5454
All `nil` values will fallback to their default values. `SecureHeaders::OPT_OUT` will disable the header entirely.
5555

5656
**Word of caution:** The following is not a default configuration per se. It serves as a sample implementation of the configuration. You should read more about these headers and determine what is appropriate for your requirements.
5757

5858
```ruby
59-
SecureHeaders::Configuration.default do |config|
59+
SecureHeaders::Configuration.configure do |config|
6060
config.cookies = {
6161
secure: true, # mark all cookies as "Secure"
6262
httponly: true, # mark all cookies as "HttpOnly"

0 commit comments

Comments
 (0)