Files
Mirror-Proxy/internal
AgentandHAPI 6fcde70a26
Build and Push to GHCR / build-and-push (push) Has been cancelled
fix: force href to absolute http URLs and strip HSTS/CSP headers
Upstream servers (e.g. GitHub) send Strict-Transport-Security and
Content-Security-Policy headers that cause browsers to upgrade HTTP
URLs to HTTPS. Strip those headers in ModifyResponse.

Also save the original request host/protocol in context before Director
mutates req.Host, then rewrite href attributes to explicit absolute URLs
(e.g. http://host/{token}/path) so the browser doesn't guess the scheme.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <[email protected]>
2026-05-24 21:01:48 +08:00
..
2026-05-24 15:27:45 +08:00