    def cookie_path(self):
        """
        Path prefix on which to set cookies

        self.base_url, but '/' when cookie_host_prefix_enabled is True
        """
        if self.cookie_host_prefix_enabled:
            return "/"
        else:
            return self.base_url
Path prefix on which to set cookies

self.base_url, but '/' when cookie_host_prefix_enabled is True
jupyterhub/services/auth.py