I'm working with mercure to get real time response.
i configured mercure with docker :
mercure:
container_name: mercure
image: dunglas/mercure
restart: always
environment:
PUBLISHER_JWT_KEY: mySecretKeyPublisher
SUBSCRIBER_JWT_KEY: mySecretKeySubscriber
ALLOW_ANONYMOUS: 1
CORS_ALLOWED_ORIGINS: "*"
networks:
- proxy
my dev url to test mercure is :
http://mercure.localhost/.well-known/mercure
I generated token using https://jwt.io/
I used this payload :
{
"mercure": {
"publish": ["*"]
}
}
and mySecretKeyPublisher :
Now i test with postman :
I got always : Unauthorized