1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-30 21:40:00 +00:00

Merge remote-tracking branch 'sec_fixes/cookies_improvement'

This commit is contained in:
OzzieIsaacs 2020-05-10 10:22:21 +02:00
commit f33e25ac40

View File

@ -56,6 +56,12 @@ mimetypes.add_type('application/ogg', '.ogg')
mimetypes.add_type('application/ogg', '.oga')
app = Flask(__name__)
app.config.update(
SESSION_COOKIE_HTTPONLY=True,
SESSION_COOKIE_SAMESITE='Lax',
REMEMBER_COOKIE_SAMESITE='Lax',
)
lm = LoginManager()
lm.login_view = 'web.login'