mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
增加Cookie安全性,支持设置Cookie的HttpOnly和Secure属性
This commit is contained in:
@@ -28,7 +28,7 @@ public class SaResponseForSolon implements SaResponse {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCookie(String name, String value, String path, String domain, int timeout) {
|
||||
public void addCookie(String name, String value, String path, String domain, int timeout, boolean isHttpOnly, boolean isSecure) {
|
||||
if (Utils.isNotEmpty(path)) {
|
||||
path = "/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user