mirror of https://github.com/gofiber/fiber.git
📚 Doc: Update example in middleware/cors to v3 (#3116)
* docs: update examples to v3 in middleware/cors * Update docs/middleware/cors.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>pull/3119/head
parent
9541a88f2a
commit
4acdc602ce
|
@ -49,8 +49,8 @@ app.Use(cors.New())
|
|||
|
||||
// Or extend your config for customization
|
||||
app.Use(cors.New(cors.Config{
|
||||
AllowOrigins: "https://gofiber.io, https://gofiber.net",
|
||||
AllowHeaders: "Origin, Content-Type, Accept",
|
||||
AllowOrigins: []string{"https://gofiber.io", "https://gofiber.net"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
||||
}))
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue