Skip to content

"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

Description

@c1tru55

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions