Skip to content

Commit c27905a

Browse files
committed
cors fix
1 parent 104651c commit c27905a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/pkg/middleware/fiber.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ import (
1111
func FiberMiddleware(a *fiber.App) {
1212
a.Use(
1313
// Add CORS to each route.
14-
cors.New(cors.Config{
15-
AllowHeaders: "Origin,Content-Type,Accept,Content-Length,Accept-Language,Accept-Encoding,Connection,Access-Control-Allow-Origin",
16-
AllowOrigins: "*",
17-
AllowCredentials: true,
18-
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
19-
}),
14+
cors.New(),
2015
// Add simple logger.
2116
logger.New(),
2217
)

0 commit comments

Comments
 (0)