Fix cookie secure flag for HTTP testing and add Pinia store
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user