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

Authorization use VM IP instead of subdomain/domain name #84

Open
geoffroyp opened this issue Mar 29, 2022 · 1 comment
Open

Authorization use VM IP instead of subdomain/domain name #84

geoffroyp opened this issue Mar 29, 2022 · 1 comment

Comments

@geoffroyp
Copy link

geoffroyp commented Mar 29, 2022

Greetings,

I'm trying to set up a project using mercure to push events from a symfony API to a react website.

When the user enters his credentials on the login page of my react website, it calls the API which respond in an appropriate way, but also set a mercure cookie like this:

` public function __construct(
private RequestStack $requestStack,
private Authorization $authorization
)
{
}

// and further, in a function:
$this->authorization->setCookie($request, ['https://example.com/books/1']);`

problem is, I get the following error:
Unable to create authorization cookie for a hub on the different second-level domain "192.168.1.43".

why does it tries to use my VM IP as domain, hwile my API actually has a working subdomain/domain name set, as well as TLS activated?

@sebheitzmann
Copy link

#54 Maybe this issue could help

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

2 participants