dunglas / mercure

🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications
https://mercure.rocks
GNU Affero General Public License v3.0
3.97k stars 296 forks source link

Support cors_origins Wildcard domain #920

Open f1amy opened 5 months ago

f1amy commented 5 months ago

Our application is multi-tenant, we're handling users from a dynamic number of subdomains.

We would like to setup authorization for Mercure subscribers, but it seems that it not possible with current configuration.

We've tried: cors_origins https://*.example.com, but Access-Control-Allow-Origin header is not appearing in responses from Mercure.

What can we do to fix this issue?

f1amy commented 5 months ago

It looks like using GET parameter authorization will work if we can't currently setup dynamic CORS origins

TheJulienM commented 5 months ago

I'd love to see this feature implemented! I have quite a few subdomains on several sites and it's getting to be a long list ^^

Thomas-Philippot commented 5 days ago

we have the same issue, hope this gets implemented !