Skip to content

Commit

Permalink
Merge pull request #92 from vortex14/wb
Browse files Browse the repository at this point in the history
global cors
  • Loading branch information
vortex14 authored Dec 1, 2023
2 parents 57634a7 + a07ebd6 commit 9d407d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/servers/gin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (s *TyphoonGinServer) onCors() {
s.server.Use(cors.Middleware(cors.Config{
Origins: "*",
Methods: "GET, PUT, POST, DELETE",
RequestHeaders: "Origin, Authorization, Content-Type",
RequestHeaders: "*",
ExposedHeaders: "",
MaxAge: 50 * time.Second,
Credentials: false,
Expand Down

0 comments on commit 9d407d2

Please sign in to comment.