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
+4
View File
@@ -13,3 +13,7 @@ cors:
- http://192.168.123.199:5158
- http://39.105.149.197:8115
- https://lpt.cat-shark.xyz
sa-token:
cookie:
secure: true
+5 -1
View File
@@ -11,4 +11,8 @@ server:
cors:
allowed-origins:
- http://localhost:5158
- http://192.168.123.199:5158
- http://192.168.123.199:5158
sa-token:
cookie:
secure: false
+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 代表不限制,永不冻结