We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f78d7e1 commit 425e925Copy full SHA for 425e925
docs/core/middleware/cors.md
@@ -49,8 +49,8 @@ app.Use(cors.New())
49
50
// Or extend your config for customization
51
app.Use(cors.New(cors.Config{
52
- AllowOrigins: "https://gofiber.io, https://gofiber.net",
53
- AllowHeaders: "Origin, Content-Type, Accept",
+ AllowOrigins: []string{"https://gofiber.io", "https://gofiber.net"},
+ AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
54
}))
55
```
56
0 commit comments