Skip to content

Commit

Permalink
#add: add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
tdatIT committed Apr 15, 2024
1 parent 50794d5 commit 30160bc
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 @@ -96,7 +96,7 @@ func NewServer(
})

app.Use(cors.New(cors.Config{
AllowOrigins: "http://127.0.0.1:5500, http://localhost:5173",
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",
}))
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 30160bc

Please sign in to comment.