Update main.go
This commit is contained in:
parent
5e7fb58805
commit
a55f20cc2a
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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},
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue