From cf201a744db1db472e90a1e4630d75f3fe50f218 Mon Sep 17 00:00:00 2001 From: nicufk Date: Thu, 9 Dec 2021 17:41:15 +0200 Subject: [PATCH] feat(/scripts): add cors settings --- internal/app/api/v1/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/api/v1/server.go b/internal/app/api/v1/server.go index 43b0c181b52..158a3e6b2fe 100644 --- a/internal/app/api/v1/server.go +++ b/internal/app/api/v1/server.go @@ -82,6 +82,7 @@ func (s testkubeAPI) Init() { executions.Get("/:executionID/artifacts/:filename", s.GetArtifact()) scripts := s.Routes.Group("/scripts") + scripts.Use(cors.New()) scripts.Get("/", s.ListScripts()) scripts.Post("/", s.CreateScript())