1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Merge pull request #532 from 0x616E676572/add_cors_method

Add PATCH to default allowed methods
This commit is contained in:
Vishal Rana 2016-05-31 07:49:48 -07:00
commit 3e04718bf4

View File

@ -48,7 +48,7 @@ var (
// DefaultCORSConfig is the default CORS middleware config.
DefaultCORSConfig = CORSConfig{
AllowOrigins: []string{"*"},
AllowMethods: []string{echo.GET, echo.HEAD, echo.PUT, echo.POST, echo.DELETE},
AllowMethods: []string{echo.GET, echo.HEAD, echo.PUT, echo.PATCH, echo.POST, echo.DELETE},
}
)