mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Merge pull request #1085 from krnch/krnch-patch-2
Cookies set with Secure flag in HTTPS mode #1084
This commit is contained in:
commit
8aa70de765
|
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user