From e47059385cbe5048256c346afa5a3eb2bd6c7998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= Date: Sun, 5 Oct 2025 16:41:41 +0200 Subject: [PATCH] cors --- backend/handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/handlers.go b/backend/handlers.go index 4056c6c..37f7f2a 100644 --- a/backend/handlers.go +++ b/backend/handlers.go @@ -282,6 +282,10 @@ func getLogo(c *gin.Context) { return } + // Set CORS headers explicitly for file serving + c.Header("Access-Control-Allow-Origin", "*") + c.Header("Access-Control-Allow-Methods", "GET, OPTIONS") + c.Header("Access-Control-Allow-Headers", "*") c.Header("Content-Type", contentType) c.Header("Cache-Control", "public, max-age=31536000") c.File(logoPath)