Sha256: dc1459056402738c9b9f923721de7094d72ad402314c965eab815dd6af97cea9

Contents?: true

Size: 553 Bytes

Versions: 26

Compression:

Stored size: 553 Bytes

Contents

## All cookies default to secure/httponly/SameSite=Lax

By default, *all* cookies will be marked as `SameSite=lax`,`secure`, and `httponly`. To opt-out, supply `SecureHeaders::OPT_OUT` as the value for `SecureHeaders.cookies` or the individual configs. Setting these values to `false` will raise an error.

```ruby
# specific opt outs
config.cookies = {
  secure: SecureHeaders::OPT_OUT,
  httponly: SecureHeaders::OPT_OUT,
  samesite: SecureHeaders::OPT_OUT,
}

# nuclear option, just make things work again
config.cookies = SecureHeaders::OPT_OUT
```

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
secure_headers-7.0.0 docs/upgrading-to-5-0.md
secure_headers-6.7.0 docs/upgrading-to-5-0.md
secure_headers-6.6.0 docs/upgrading-to-5-0.md
secure_headers-6.5.0 docs/upgrading-to-5-0.md
secure_headers-6.4.0 docs/upgrading-to-5-0.md
secure_headers-6.3.4 docs/upgrading-to-5-0.md
secure_headers-6.3.3 docs/upgrading-to-5-0.md
secure_headers-6.3.2 docs/upgrading-to-5-0.md
secure_headers-6.3.1 docs/upgrading-to-5-0.md
secure_headers-5.2.0 docs/upgrading-to-5-0.md
secure_headers-6.3.0 docs/upgrading-to-5-0.md
secure_headers-5.1.0 docs/upgrading-to-5-0.md
secure_headers-6.2.0 docs/upgrading-to-5-0.md
secure_headers-6.1.2 docs/upgrading-to-5-0.md
secure_headers-6.1.1 docs/upgrading-to-5-0.md
secure_headers-6.1.0 docs/upgrading-to-5-0.md
secure_headers-6.0.0 docs/upgrading-to-5-0.md
secure_headers-6.0.0.alpha03 docs/upgrading-to-5-0.md
secure_headers-6.0.0.alpha02 docs/upgrading-to-5-0.md
secure_headers-6.0.0.alpha01 docs/upgrading-to-5-0.md