Skip to content

Commit 1ee0e26

Browse files
committed
Fix path for csrf tokens, insure js can access them anywhere
1 parent adff7b2 commit 1ee0e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_jwt_extended/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def set_access_cookies(response, encoded_access_token):
386386
value=_get_csrf_token(encoded_access_token),
387387
secure=get_cookie_secure(),
388388
httponly=False,
389-
path=get_access_cookie_path())
389+
path='/')
390390

391391

392392
def set_refresh_cookie(response, encoded_refresh_token):
@@ -407,4 +407,4 @@ def set_refresh_cookie(response, encoded_refresh_token):
407407
value=_get_csrf_token(encoded_refresh_token),
408408
secure=get_cookie_secure(),
409409
httponly=False,
410-
path=get_refresh_cookie_path())
410+
path='/')

0 commit comments

Comments
 (0)