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

Feature request: Twig helper generating hub URL with authorization parameter #100

Open
wooky opened this issue Mar 3, 2023 · 0 comments

Comments

@wooky
Copy link

wooky commented Mar 3, 2023

If the Mercure hub is located on a completely different domain from the one where the front-end is hosted, then authorizing with the hub using cookies doesn't work (AFAIK). Using Authorization header doesn't work with the browser's native EventSource. This leaves adding an authorization parameter to the hub query.

I propose adding a Twig extension to generate a hub URL, similar to the existing mercure() function, but adding an authorization param to the query.

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

1 participant