From 509e139e7517bbed83507476798dc936ee75c5a4 Mon Sep 17 00:00:00 2001 From: cat Date: Sat, 21 Jun 2025 15:11:30 +0000 Subject: [PATCH] Add CORS for texture routes Fixes #173 Signed-off-by: cat --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9857776..f2ca6a3 100644 --- a/main.go +++ b/main.go @@ -26,6 +26,7 @@ import ( "os" "path" "regexp" + "strings" "time" ) @@ -176,7 +177,7 @@ func (app *App) MakeServer() *echo.Echo { return !Contains([]string{ DRASL_API_PREFIX + "/swagger.json", DRASL_API_PREFIX + "/openapi.json", - }, c.Path()) + }, c.Path()) && !strings.HasPrefix(c.Path(), "/web/texture/") }, }))