Skip to content

Commit 49df2ab

Browse files
committed
feat: simplify CORS middleware configuration in bootstrap
1 parent 9ab2dac commit 49df2ab

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

internal/bootstrap/bootstrap.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ func Start() error {
3939
IdleTimeout: idleTimeout,
4040
})
4141

42-
app.Use(cors.New(cors.Config{
43-
AllowHeaders: "Origin,Content-Type,Accept,Content-Length,Accept-Language,Accept-Encoding,Connection,Access-Control-Allow-Origin",
44-
AllowOrigins: "*",
45-
AllowCredentials: true,
46-
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
47-
}))
42+
app.Use(cors.New())
4843

4944
app.Use(limiter.New(limiter.Config{
5045
Max: 20,

0 commit comments

Comments
 (0)