You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried last week to set up a demo project, as simple as possible, to try UX Turbo with Mercure.
Unfortunately, I can't find a way to make this work.
The best I managed to get is a 401 Unauthorized response when the browser tries to connect to the Mercure server, while I seem to manage to connect to it correctly in my terminal using curl.
The problem is that you currently try to use an external hub while also using Symfony CLI. You need to use the built-in hub provided by Symfony CLI and the JWT key must be the default one (!ChangeMe!).
Hi,
I've tried last week to set up a demo project, as simple as possible, to try UX Turbo with Mercure.
Unfortunately, I can't find a way to make this work.
The best I managed to get is a 401 Unauthorized response when the browser tries to connect to the Mercure server, while I seem to manage to connect to it correctly in my terminal using curl.
Here is the reproducer: https://github.com/jmsche/turbo-reproducer
You can read its README to launch it "easily" (using Symfony CLI & Docker Compose).
What I noted though: I don't see any token passed to the XHR request sent to Mercure.
Here is the request I got from Firefox (using right click on the request => copy as curl):
As you can see the request is sent to the correct URL/port; so Symfony CLI does not seem to be the issue here.
The text was updated successfully, but these errors were encountered: