Skip to content

Commit

Permalink
fix: Allow all origins
Browse files Browse the repository at this point in the history
Signed-off-by: Snorre Magnus Davøen <[email protected]>
  • Loading branch information
snorremd committed Oct 15, 2023
1 parent c16b1ca commit 4367222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Server(config *ServerConfig) *fiber.App {
// Setup CORS for localhost:3001
app.Use(func(c *fiber.Ctx) error {
corsConfig := cors.Config{
AllowOrigins: "http://localhost:3001",
AllowOrigins: "*",
AllowCredentials: true,
}
return cors.New(corsConfig)(c)
Expand Down

0 comments on commit 4367222

Please sign in to comment.