Fixed cors

This commit is contained in:
kolaente 2018-01-30 11:23:00 +01:00 committed by kolaente
parent 12d8b8f0fa
commit ca88232109
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -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)