Skip to content

Commit 425e925

Browse files
Add docs from gofiber/fiber@4acdc60
1 parent f78d7e1 commit 425e925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/middleware/cors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ app.Use(cors.New())
4949

5050
// Or extend your config for customization
5151
app.Use(cors.New(cors.Config{
52-
AllowOrigins: "https://gofiber.io, https://gofiber.net",
53-
AllowHeaders: "Origin, Content-Type, Accept",
52+
AllowOrigins: []string{"https://gofiber.io", "https://gofiber.net"},
53+
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
5454
}))
5555
```
5656

0 commit comments

Comments
 (0)