mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
SameSite=Lax for cookies, DENY for X-Frame-Options
This commit is contained in:
parent
79887f87ba
commit
6dc1abe99b
1 changed files with 2 additions and 2 deletions
4
app.rb
4
app.rb
|
@ -6,7 +6,7 @@ use Rack::Session::Cookie, key: 'neocities',
|
|||
expire_after: 31556926, # one year in seconds
|
||||
secret: $config['session_secret'],
|
||||
httponly: true,
|
||||
same_site: true,
|
||||
same_site: :lax,
|
||||
secure: ENV['RACK_ENV'] == 'production'
|
||||
|
||||
use Rack::Recaptcha, public_key: $config['recaptcha_public_key'], private_key: $config['recaptcha_private_key']
|
||||
|
@ -25,7 +25,7 @@ helpers do
|
|||
end
|
||||
end
|
||||
|
||||
set :protection, :frame_options => "ALLOW-FROM #{$config['surf_iframe_source']}"
|
||||
set :protection, :frame_options => "DENY"
|
||||
|
||||
GEOCITIES_NEIGHBORHOODS = %w{
|
||||
area51
|
||||
|
|
Loading…
Add table
Reference in a new issue