mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
根据协议自动配置samesite
This commit is contained in:
parent
a1e4b124d9
commit
5099f54390
@ -20,12 +20,12 @@ return [
|
|||||||
'path' => '/',
|
'path' => '/',
|
||||||
// cookie 有效域名
|
// cookie 有效域名
|
||||||
'domain' => '',
|
'domain' => '',
|
||||||
// cookie 安全传输
|
|
||||||
'secure' => false,
|
|
||||||
// httponly 访问设置
|
// httponly 访问设置
|
||||||
'httponly' => true,
|
'httponly' => true,
|
||||||
// 是否使用 setcookie
|
// 是否使用 setcookie
|
||||||
'setcookie' => true,
|
'setcookie' => true,
|
||||||
// samesite 设置,支持 'strict' 'lax'
|
// cookie 安全传输,只支持 https 协议
|
||||||
'samesite' => '',
|
'secure' => app()->request->isSsl(),
|
||||||
];
|
// samesite 安装设置,支持 'strict' 'lax' 'none'
|
||||||
|
'samesite' => app()->request->isSsl() ? 'none' : 'lax',
|
||||||
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user