Skip to content

Commit

Permalink
update method
Browse files Browse the repository at this point in the history
  • Loading branch information
tdatIT committed Jun 23, 2024
1 parent d6b0d8c commit 0be3cf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ func NewServer(
app.Use(recoverFiber.New(recoverConfig))

app.Use(cors.New(cors.Config{
AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173",
AllowHeaders: "Origin, X-Requested-With, Content-Type, Accept, Authorization",
AllowMethods: "GET,HEAD,OPTIONS,POST,PUT",
AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173, http://localhost:5500, http://localhost:5173",
AllowHeaders: "*",
AllowMethods: "*",
}))

//providing basic authentication for metrics endpoints
Expand Down

0 comments on commit 0be3cf9

Please sign in to comment.