Skip to content

Commit 476be9e

Browse files
committed
Fix:AddMercureTokenListener cookie
1 parent 6475455 commit 476be9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventListener/Mercure/AddMercureTokenListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function onKernelResponse(ResponseEvent $event): void
6363

6464
// Todo: await merge of https://github.com/symfony/mercure/pull/93 to remove ability to publish any updates and set to null
6565
// May also be able to await a mercure bundle update to set the cookie samesite in mercure configs
66-
$cookie = $this->mercureAuthorization->createCookie($request, $request, $subscribeIris, [], $this->hubName);
66+
$cookie = $this->mercureAuthorization->createCookie($request, $subscribeIris, [], [], $this->hubName);
6767
$cookie->withSameSite($this->cookieSameSite);
6868
$response->headers->setCookie($cookie);
6969
}

0 commit comments

Comments
 (0)