Method: flask.sessions.SessionInterface.get_cookie_samesite
Calls: 346, Exceptions: 0, Paths: 1Back
Path 1: 346 calls (1.0)
Flask (342) test_session_dynamic_cookie_name.
None (341) 'Lax' (3) 'invalid' (1) 'Strict' (1)
1def get_cookie_samesite(self, app: Flask) -> str:
2 """Return ``'Strict'`` or ``'Lax'`` if the cookie should use the
3 ``SameSite`` attribute. This currently just returns the value of
4 the :data:`SESSION_COOKIE_SAMESITE` setting.
5 """
6 return app.config["SESSION_COOKIE_SAMESITE"]