mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-06 11:24:07 +08:00
🛸 Sync 2026-10-12 19:55:25
This commit is contained in:
1 parent
accbfee648
commit
8247b3bbae
16 files changed
+42
-95
No files matched your search
@@ -963,7 +963,7 @@ dispatch = function(_http, path) {
|
||||
let cookie_name = (http.getenv('HTTPS') == 'on') ? 'sysauth_https' : 'sysauth_http',
|
||||
cookie_secure = (http.getenv('HTTPS') == 'on') ? '; secure' : '';
|
||||
|
||||
let cookie_p = uci.get('wizard', 'default', 'cookie_p');
|
||||
let cookie_p = uci.get('luci', 'main', 'persistent_cookies');
|
||||
if (cookie_p == '0') {
|
||||
http.header('Set-Cookie', `${cookie_name}=${session.sid}; path=${build_url()}; SameSite=strict; HttpOnly${cookie_secure}`);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user