From 7613e7b96a9614b01129e68085bba596564d22b2 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Wed, 8 Sep 2021 21:07:24 +0300 Subject: [PATCH] Added sameSite attribute in response sendCookies() --- src/Swoole/Response.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Swoole/Response.php b/src/Swoole/Response.php index e9a38773..91de912a 100644 --- a/src/Swoole/Response.php +++ b/src/Swoole/Response.php @@ -91,7 +91,8 @@ public function sendCookies() $cookie->getPath(), $cookie->getDomain(), $cookie->isSecure(), - $cookie->isHttpOnly() + $cookie->isHttpOnly(), + $cookie->getSameSite() ); } }