diff --git a/configs.py b/configs.py index d6acc5f..2a00bfa 100644 --- a/configs.py +++ b/configs.py @@ -9,7 +9,7 @@ class BaseConfig: ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) - JWT_TOKEN_LOCATION = ["headers", "cookies"] + JWT_TOKEN_LOCATION = ["headers"] JWT_ACCESS_TOKEN_EXPIRES = timedelta(days=7) diff --git a/templates/view/index.html b/templates/view/index.html index 42a9938..5af9d0e 100644 --- a/templates/view/index.html +++ b/templates/view/index.html @@ -127,7 +127,7 @@ }, }); - // 请求后端,严重是否已经登录 + // 请求后端,验证是否已经登录 $.ajax({ type: "GET", url: "/api/v1/user/profile",