fix(10): 修正前端cookie写入的问题,指定same-site,防止浏览器阻止cookie的写入

This commit is contained in:
2025-10-03 09:53:51 +08:00
parent ecda6aa4a1
commit 436b627f3e
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -30,6 +30,8 @@ mybatis-plus:
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: satoken
cookie:
same-site: None
# token 有效期(单位:秒) 默认30天,-1 代表永久有效
timeout: 2592000
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结