Skip to content

Commit

Permalink
📚 Doc: Update example in middleware/cors to v3 (#3116)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 31, 2024
1 parent 9541a88 commit 4acdc60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/middleware/cors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}))
```

Expand Down

0 comments on commit 4acdc60

Please sign in to comment.