mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont set cookie for api calls
This commit is contained in:
parent
4a2926508e
commit
61bf9012d6
1 changed files with 6 additions and 0 deletions
6
app.rb
6
app.rb
|
@ -77,6 +77,12 @@ before do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after do
|
||||||
|
if @api
|
||||||
|
request.session_options[:skip] = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#after do
|
#after do
|
||||||
#response.headers['Content-Security-Policy'] = %{block-all-mixed-content; default-src 'self'; connect-src 'self' https://api.stripe.com; frame-src https://www.google.com/recaptcha/ https://js.stripe.com; script-src 'self' 'unsafe-inline' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://js.stripe.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: }
|
#response.headers['Content-Security-Policy'] = %{block-all-mixed-content; default-src 'self'; connect-src 'self' https://api.stripe.com; frame-src https://www.google.com/recaptcha/ https://js.stripe.com; script-src 'self' 'unsafe-inline' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://js.stripe.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: }
|
||||||
#end
|
#end
|
||||||
|
|
Loading…
Add table
Reference in a new issue