feat: support X-Forwarded-Proto for manifest URL (#1395)

This commit is contained in:
rioradio
2025-09-28 12:28:36 +03:00
committed by GitHub
parent 935e2fbf61
commit c432008deb

View File

@@ -386,7 +386,7 @@ func asyncCall(e *core.RequestEvent, fn func() *router.ApiError) *router.ApiErro
func HandlerWebsiteManifest(e *core.RequestEvent) error {
scheme := "http"
if e.Request.TLS != nil {
if e.Request.TLS != nil || e.Request.Header.Get("X-Forwarded-Proto") == "https" {
scheme = "https"
}
baseUrl := fmt.Sprintf("%s://%s", scheme, e.Request.Host)