fix: HttpOnly not support to config on client js (#585)

This commit is contained in:
Birdgg 2023-05-26 04:15:24 +08:00 committed by GitHub
parent ddd6d1909c
commit a839332b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ export const useDarkMode = () => {
date.setMonth(date.getMonth() + 1)
document.cookie = IS_DEV
? `color_scheme=${colorScheme};`
: `color_scheme=${colorScheme}; Domain=.${OUR_DOMAIN}; Path=/; Secure; HttpOnly; expires=${date.toUTCString()}`
: `color_scheme=${colorScheme}; Domain=.${OUR_DOMAIN}; Path=/; Secure; expires=${date.toUTCString()}`
}, [value])
const onceRef = useRef(false)