Caddyfile cors_origins
In caddyfile mercure cors_origins I need to allow all subdomains but when we use Auth header we cannot use wildcard. So is there any possibility to allow all subdomains?
Need to do something like this
mercure { ... @origin header Origin https://*.example.com cors_origins @origin {request.headers.Origin} }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any considerations on this? I need this too.
Maybe could we delegate that to Caddy? The CORS handler we use (Gorilla) is deprecated so removing it is also a good opportunity to remove fix this issue.
Is there any update to this? We are also facing an issue here as subdomains can be created more or less dynamically in our application. Adding a list of all subdomains to the configuration is not possible as another one could be created at any moment.
We are stuck on Mercure Hub version 0.10.4 because of this problem and can not update from there because of the change in webserver.
Is there possible any other way to come around this issue which I am overlooking right now?
We've faced the same issue, working with dynamic subdomains, so we need wildcard for it to work