fix(hydra): match Caddy in making docs.jsonld Link header URI relative#7236
fix(hydra): match Caddy in making docs.jsonld Link header URI relative#7236rvanlaak wants to merge 1 commit into
Conversation
…addy and make client responsible of matching the original requeest's protocol
|
Why not but if the absolute URL is wrongly generated, this means that Symfony is misconfigured (usually, trusted headers aren’t configured properly) and this will cause other issues for users (for instance when sending mails). This mitigation will just hide the underlying issue, and require a bit more logic client-side, I’m not against it but I’m also not sure it is worth it. |
|
Thanks for the analysis!
In my situation it seems that for some odd reason solely the documentation url gets generated as http, where the entire application is served over https. The stack route; Browser --(https)--> Cloudflare --> Managed loadbalancer --(http)-> k3s --> service --> pod --> Caddy / frankenphp container. This PR is solely a change for the documentation / entrypoint URI if I'm correct? So generating an ABS_URL for emails thereby would be another responsibility? If I'm correct, the resource's An analysis on the codebase learns us that For resources themselves userland is in control: |
|
I guess there could be a global configuration for this? |
|
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. |
This makes the client responsible of matching the original request's protocol.
The HydraLinkProcessor includes an absolute URI as Link header, but as the Psr\Link\LinkInterface prescribes it is allowed to have a relative URI as well.