clean up samesite docs

This commit is contained in:
David Lord 2018-01-23 15:11:50 -08:00
parent db5735c3ce
commit 382b13581e
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 33 additions and 30 deletions

View file

@ -250,9 +250,9 @@ class SessionInterface(object):
return app.config['SESSION_COOKIE_SECURE']
def get_cookie_samesite(self, app):
"""Returns "Strict", "Lax" or None if the cookie should use
samesite attribute. This currently just returns the value of
the ``SESSION_COOKIE_SAMESITE`` setting.
"""Return ``'Strict'`` or ``'Lax'`` if the cookie should use the
``SameSite`` attribute. This currently just returns the value of
the :data:`SESSION_COOKIE_SAMESITE` setting.
"""
return app.config['SESSION_COOKIE_SAMESITE']