From 0a7fd969426f202e7943147fb2d1404b3a8ca800 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 13 Dec 2023 11:55:38 +0100 Subject: [PATCH] Make bool-env more generic --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index a4bebf0..523709f 100644 --- a/server.py +++ b/server.py @@ -24,7 +24,7 @@ app = Flask(__name__) app.config['JWT_COOKIE_SECURE'] = os.environ.get( - 'JWT_COOKIE_SECURE', 'False') == 'True' + 'JWT_COOKIE_SECURE', 'False').lower() == 'true' app.config['JWT_COOKIE_SAMESITE'] = os.environ.get( 'JWT_COOKIE_SAMESITE', 'Lax') app.config['JWT_ACCESS_TOKEN_EXPIRES'] = int(os.environ.get(