mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-12 14:03:16 -08:00
* Enable secure cookie flag for https only * Disable force_ssl for .onion hosts only Co-authored-by: Aiden McClelland <me@drbonez.dev>
10 lines
192 B
Ruby
10 lines
192 B
Ruby
SecureHeaders::Configuration.default do |config|
|
|
config.cookies = {
|
|
secure: true,
|
|
httponly: true,
|
|
samesite: {
|
|
lax: true
|
|
}
|
|
}
|
|
config.csp = SecureHeaders::OPT_OUT
|
|
end
|