"Unable to create authorization cookie for a hub on the different second-level domain" error for requests sent from server component of Next.js (API Platform) #119
I want to get authorization cookie value for my app.localhost domain (public URL of app and mercure hub), but request is sent from server component of Next.js in API Platform, so my current request host is php (same as private URL of mercure hub). as a result I've got an error Unable to create authorization cookie for a hub on the different second-level domain "app.localhost"..
maybe it makes sense to compare request host not only with hub public url host, but also with private url?
I want to get authorization cookie value for my
app.localhost
domain (public URL of app and mercure hub), but request is sent from server component of Next.js in API Platform, so my current request host isphp
(same as private URL of mercure hub). as a result I've got an errorUnable to create authorization cookie for a hub on the different second-level domain "app.localhost".
. maybe it makes sense to compare request host not only with hub public url host, but also with private url?