This commit is contained in:
Tomáš Dvořák
2025-10-05 16:41:41 +02:00
parent 30e180886d
commit e47059385c
+4
View File
@@ -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)