Fix cookie secure flag for HTTP testing and add Pinia store

This commit is contained in:
Torsten Schulz (local)
2025-10-21 14:25:07 +02:00
parent 43071b45a9
commit 463418c6e2
154 changed files with 1294 additions and 1191 deletions

View File

@@ -54,7 +54,7 @@ export default defineEventHandler(async (event) => {
// Set cookie
setCookie(event, 'auth_token', token, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: false, // Auch in Production false, da wir HTTPS über Apache terminieren
sameSite: 'lax',
maxAge: 60 * 60 * 24 * 7 // 7 days
})