class ActionDispatch::Cookies::CookieJar

def write_cookie?(cookie)

def write_cookie?(cookie)
  request.ssl? || !cookie[:secure] || always_write_cookie || request.host.end_with?(".onion")
end