Skip to content

Commit

Permalink
Add docs from gofiber/fiber@4acdc60
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 31, 2024
1 parent f78d7e1 commit 425e925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/core/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 425e925

Please sign in to comment.