From bc54133f184c69eba4d9022ec2da4b96e8da4236 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:33:23 +0100 Subject: [PATCH] Will this do ? --- backend/api/media/media.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/media/media.go b/backend/api/media/media.go index 55dae1b..69caf0e 100644 --- a/backend/api/media/media.go +++ b/backend/api/media/media.go @@ -54,7 +54,7 @@ func HandleMedia(w http.ResponseWriter, r *http.Request) { return } scheme := "http" - if r.TLS != nil { // Check if the request is over HTTPS + if r.TLS != nil || os.Getenv("ENVIRONMENT") != "DEV" { // Check if the request is over HTTPS scheme = "https" }