From ca88232109bd86b3075f95466c92ac4543aa94b9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 30 Jan 2018 11:23:00 +0100 Subject: [PATCH] Fixed cors --- routes/routes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/routes.go b/routes/routes.go index 9ffc758..cbb32dd 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -58,6 +58,9 @@ func RegisterRoutes(e *echo.Echo) { a.OPTIONS("/status/:id", SetCORSHeader) a.OPTIONS("/items", SetCORSHeader) a.OPTIONS("/items/:id", SetCORSHeader) + a.OPTIONS("/logs", SetCORSHeader) + a.OPTIONS("/users", SetCORSHeader) + a.OPTIONS("/users/:id", SetCORSHeader) a.POST("/login", Login)