Update main.go

This commit is contained in:
Florian Hoss 2022-12-19 12:21:06 +01:00
parent 5e7fb58805
commit a55f20cc2a

View file

@ -56,7 +56,7 @@ func (g *goDash) setupMiddlewares() {
g.router.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: g.config.AllowedHosts,
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept},
AllowMethods: []string{echo.GET},
AllowMethods: []string{echo.GET, http.MethodHead},
}))
}