[Mercure] update mercure doc to add clarification in authorization #12779
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello everyone,
I've added a few words and a code example to clarify the doc about authorization in the Mercure Bundle, to indicate that the
withCredentials
attribute of theEventSource
must be set totrue
for the authorization cookie to be sent to the Hub. I was missing this info when I installed Mercure for the first time (super protocol, by the way!) and learned about it while reading comments in response to an issue.By the way, this pull request should fix the closed issue dunglas/mercure#65.
Thanks in advance and have a nice day!
(This is my first pull request ever to an open-source project, all the more so to the Symfony repository, so I hope I did everything right.)