Skip to content

Commit e69dc4d

Browse files
committed
correct readme example
1 parent 66c1b4e commit e69dc4d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ All `nil` values will fallback to their default values. `SecureHeaders::OPT_OUT`
3232
```ruby
3333
SecureHeaders::Configuration.default do |config|
3434
config.cookies = {
35-
secure: true, # mark all cookies as "secure"
36-
httponly: true, # mark all cookies as "httponly"
37-
samesite: true
35+
secure: true, # mark all cookies as "Secure"
36+
httponly: true, # mark all cookies as "HttpOnly"
37+
samesite: {
38+
strict: true # mark all cookies as SameSite=Strict
39+
}
3840
}
3941
config.hsts = "max-age=#{20.years.to_i}; includeSubdomains; preload"
4042
config.x_frame_options = "DENY"

0 commit comments

Comments
 (0)