mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-20 22:09:15 +08:00
Update cookie.php
This commit is contained in:
parent
5099f54390
commit
63b897b34a
@ -26,6 +26,6 @@ return [
|
|||||||
'setcookie' => true,
|
'setcookie' => true,
|
||||||
// cookie 安全传输,只支持 https 协议
|
// cookie 安全传输,只支持 https 协议
|
||||||
'secure' => app()->request->isSsl(),
|
'secure' => app()->request->isSsl(),
|
||||||
// samesite 安装设置,支持 'strict' 'lax' 'none'
|
// samesite 安全设置,支持 'strict' 'lax' 'none'
|
||||||
'samesite' => app()->request->isSsl() ? 'none' : 'lax',
|
'samesite' => app()->request->isSsl() ? 'none' : 'lax',
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user