Skip to content

Commit c432008

Browse files
authored
feat: support X-Forwarded-Proto for manifest URL (#1395)
1 parent 935e2fb commit c432008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/pb/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func asyncCall(e *core.RequestEvent, fn func() *router.ApiError) *router.ApiErro
386386

387387
func HandlerWebsiteManifest(e *core.RequestEvent) error {
388388
scheme := "http"
389-
if e.Request.TLS != nil {
389+
if e.Request.TLS != nil || e.Request.Header.Get("X-Forwarded-Proto") == "https" {
390390
scheme = "https"
391391
}
392392
baseUrl := fmt.Sprintf("%s://%s", scheme, e.Request.Host)

0 commit comments

Comments
 (0)