Skip to content

Commit

Permalink
#update: change cors
Browse files Browse the repository at this point in the history
  • Loading branch information
tdatIT committed Jun 23, 2024
1 parent f15481e commit ce1504d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewServer(
app.Use(cors.New(cors.Config{
AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173, http://localhost:5500, http://localhost:5173",
AllowHeaders: "*",
AllowMethods: "GET,HEAD,OPTIONS,POST,PUT",
AllowMethods: "*",
}))

prometheus := fiberprometheus.New("latipe-order-service-v2")
Expand Down
2 changes: 1 addition & 1 deletion internal/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce1504d

Please sign in to comment.