返回响应头增加x-token,通过记住我登录系统时使用。

This commit is contained in:
thinkgem
2024-03-13 13:18:36 +08:00
parent b1f29a9d57
commit 87b8dc6ec4
4 changed files with 4 additions and 4 deletions

View File

@@ -406,7 +406,7 @@ shiro:
# 允许跨域访问时 CORS可以获取和返回的方法和请求头
#accessControlAllowMethods: GET, POST, OPTIONS
#accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
#accessControlExposeHeaders: x-remember
#accessControlExposeHeaders: x-token, x-remember
# 是否允许接收跨域的Cookie凭证数据 CORS
#accessControlAllowCredentials: false

View File

@@ -586,7 +586,7 @@ shiro:
# # 允许跨域访问时 CORS可以获取和返回的方法和请求头
# accessControlAllowMethods: GET, POST, OPTIONS
# accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
# accessControlExposeHeaders: x-remember
# accessControlExposeHeaders: x-token, x-remember
# # 是否允许接收跨域的Cookie凭证数据 CORS
# accessControlAllowCredentials: false

View File

@@ -172,7 +172,7 @@ shiro:
# 允许跨域访问时 CORS可以获取和返回的方法和请求头
accessControlAllowMethods: GET, POST, OPTIONS
accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
accessControlExposeHeaders: x-remember
accessControlExposeHeaders: x-token, x-remember
# Session 相关
session:

View File

@@ -586,7 +586,7 @@ shiro:
# # 允许跨域访问时 CORS可以获取和返回的方法和请求头
# accessControlAllowMethods: GET, POST, OPTIONS
# accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
# accessControlExposeHeaders: x-remember
# accessControlExposeHeaders: x-token, x-remember
# # 是否允许接收跨域的Cookie凭证数据 CORS
# accessControlAllowCredentials: false