If this header already exists in the to-be-sent headers, its value will be replaced
So, whenever $storage.setCookie() is called on SSR side, it replaces all cookies which were set before and it's impossible to set 2 different cookies using $storage.setCookie() on SSR, as only the last one will get into "Set-Cookies" header.
As per setHeader documentation:
So, whenever
$storage.setCookie()
is called on SSR side, it replaces all cookies which were set before and it's impossible to set 2 different cookies using$storage.setCookie()
on SSR, as only the last one will get into "Set-Cookies" header.This PR aims to fix this issue.