Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"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

Open
c1tru55 opened this issue Jul 3, 2024 · 0 comments

Comments

@c1tru55
Copy link

c1tru55 commented Jul 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant