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" }