Issue with chrome 80 and SameSite cookie changes

If you are using the oauthenticator, you may need to override the set_state_cookie method from the OAuthLoginHandler class:

    def set_state_cookie(self, state):
        """
        Add 'samesite' and 'secure' parameters. Requires Python 3.8.* to work.
        """
        self.set_secure_cookie(STATE_COOKIE_NAME, state, expires_days=1, httponly=True, samesite=None, secure=True)

This was a fix that was implemented by @netoisc - I’m sure he could offer more details!

1 Like