Skip to content

Commit

Permalink
feat(/scripts): add cors settings (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicufk authored Dec 9, 2021
1 parent 81cb591 commit 301ec47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/app/api/v1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 301ec47

Please sign in to comment.