mirror of
https://github.com/flarum/core.git
synced 2025-07-23 17:51:24 +02:00
Set cookies to be HTTP only
This commit is contained in:
@@ -24,6 +24,7 @@ trait WritesRememberCookie
|
||||
SetCookie::create('flarum_remember', $token)
|
||||
->withMaxAge(14 * 24 * 60 * 60)
|
||||
->withPath('/')
|
||||
->withHttpOnly(true)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -35,6 +36,7 @@ trait WritesRememberCookie
|
||||
SetCookie::create('flarum_remember')
|
||||
->withMaxAge(-2628000)
|
||||
->withPath('/')
|
||||
->withHttpOnly(true)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user