mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
allow override of cookie options
via `tornado_settings['cookie_options']` for cases where default options are incorrect or insufficient (e.g. expiry or https detection fails)
This commit is contained in:
@@ -265,6 +265,8 @@ class BaseHandler(RequestHandler):
|
||||
kwargs['secure'] = True
|
||||
if self.subdomain_host:
|
||||
kwargs['domain'] = self.domain
|
||||
|
||||
kwargs.update(self.settings.get('cookie_options', {}))
|
||||
self.log.debug("Setting cookie for %s: %s, %s", user.name, server.cookie_name, kwargs)
|
||||
self.set_secure_cookie(
|
||||
server.cookie_name,
|
||||
|
Reference in New Issue
Block a user