I use Symfony 5.1.*. I get this terrible bug, I don't know what's happen, I waste my day for nothing, if any one know something to save my carrier in programming.
#.env
MERCURE_PUBLISH_URL=http://localhost:3000/.well-known/mercure/
#config/packages/mercure.yaml
mercure:
enable_profiler: '%kernel.debug%'
hubs:
default:
url: http://localhost:3000/.well-known/mercure/
jwt: '%env(MERCURE_JWT_TOKEN)%'
I run the command
./mercure --jwt-key='!ChangeMe!' --addr='localhost:3000' --allow-anonymous --cors-allowed-origins='http://localhost:8000'