Skip to content

Commit 7260b83

Browse files
authored
Adds SameSite attribute for cookies (#299)
1 parent 54e6677 commit 7260b83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Swoole/SwooleClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public function sendResponseHeaders(Response $response, SwooleResponse $swooleRe
194194
$cookie->getPath(),
195195
$cookie->getDomain(),
196196
$cookie->isSecure(),
197-
$cookie->isHttpOnly()
197+
$cookie->isHttpOnly(),
198+
$cookie->getSameSite()
198199
);
199200
}
200201
}

0 commit comments

Comments
 (0)