Skip to content

Commit

Permalink
correct readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
stve committed Apr 13, 2016
1 parent 66c1b4e commit e69dc4d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -32,9 +32,11 @@ All `nil` values will fallback to their default values. `SecureHeaders::OPT_OUT`
```ruby
SecureHeaders::Configuration.default do |config|
config.cookies = {
secure: true, # mark all cookies as "secure"
httponly: true, # mark all cookies as "httponly"
samesite: true
secure: true, # mark all cookies as "Secure"
httponly: true, # mark all cookies as "HttpOnly"
samesite: {
strict: true # mark all cookies as SameSite=Strict
}
}
config.hsts = "max-age=#{20.years.to_i}; includeSubdomains; preload"
config.x_frame_options = "DENY"
Expand Down

0 comments on commit e69dc4d

Please sign in to comment.