mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 23:15:07 +00:00
![Cecylia Bocovich](/assets/img/avatar_default.png)
* Enable secure cookie flag for https only * Disable force_ssl for .onion hosts only Co-authored-by: Aiden McClelland <me@drbonez.dev>
11 lines
192 B
Ruby
11 lines
192 B
Ruby
SecureHeaders::Configuration.default do |config|
|
|
config.cookies = {
|
|
secure: true,
|
|
httponly: true,
|
|
samesite: {
|
|
lax: true
|
|
}
|
|
}
|
|
config.csp = SecureHeaders::OPT_OUT
|
|
end
|