移除 cookie 的 secure 属性

This commit is contained in:
2025-04-22 11:31:41 +08:00
parent 4c0fc8be6a
commit 38ca97f3ba
5 changed files with 0 additions and 18 deletions

View File

@@ -73,13 +73,11 @@ export async function GET(request: Request) {
.set('captcha_hash', hash, {
httpOnly: true,
sameSite: 'strict',
secure: process.env.NODE_ENV === 'production',
maxAge: 60,
})
.set('captcha_salt', salt, {
httpOnly: true,
sameSite: 'strict',
secure: process.env.NODE_ENV === 'production',
maxAge: 60,
})