diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index dd32349..6edf93c 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -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 diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 7a99839..82fe589 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -11,4 +11,8 @@ server: cors: allowed-origins: - http://localhost:5158 - - http://192.168.123.199:5158 \ No newline at end of file + - http://192.168.123.199:5158 + +sa-token: + cookie: + secure: false \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a29f410..369bfdc 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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 代表不限制,永不冻结