Fixed cors
This commit is contained in:
parent
12d8b8f0fa
commit
ca88232109
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue