mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 16:12:50 +08:00
Set cookies to be HTTP only
This commit is contained in:
parent
17965f2f61
commit
552e50074e
|
@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user