From 64639ab8322f181bc0697d7ea2822d67c2225c05 Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 7 Sep 2018 08:20:19 +0200 Subject: [PATCH] Added cors headers for /namespaces --- routes/routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/routes.go b/routes/routes.go index 509c98fa9c..6b6aabf5cc 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -78,6 +78,8 @@ func RegisterRoutes(e *echo.Echo) { a.OPTIONS("/users/:id", SetCORSHeader) a.OPTIONS("/lists", SetCORSHeader) a.OPTIONS("/lists/:id", SetCORSHeader) + a.OPTIONS("/namespaces", SetCORSHeader) + a.OPTIONS("/namespaces/:id", SetCORSHeader) a.POST("/login", apiv1.Login) a.POST("/register", apiv1.RegisterUser)