1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

Merge pull request #1085 from krnch/krnch-patch-2

Cookies set with Secure flag in HTTPS mode #1084
This commit is contained in:
Toby Zerner
2016-12-11 18:16:04 +10:30
committed by GitHub

View File

@@ -68,6 +68,7 @@ class StartSession implements MiddlewareInterface
SetCookie::create($session->getName(), $session->getId()) SetCookie::create($session->getName(), $session->getId())
->withPath('/') ->withPath('/')
->withHttpOnly(true) ->withHttpOnly(true)
->withSecure(true)
); );
} }
} }