From e5a60da215496ce656cbb292539968234ebb00a6 Mon Sep 17 00:00:00 2001 From: zhengxinonly Date: Wed, 31 Jan 2024 23:35:18 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E5=A4=8D=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs.py | 2 +- templates/view/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",