Skip to content

Commit

Permalink
added max age to cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Jan 23, 2024
1 parent a65f0bc commit f28db92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inits/Server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func Server() {
AllowOrigins: []string{config.ENV.CorsAllowOrigins},
AllowHeaders: []string{config.ENV.CorsAllowHeaders},
AllowCredentials: *config.ENV.CorsAllowCredentials,
MaxAge: 7200,
}))

// Logging
Expand Down

0 comments on commit f28db92

Please sign in to comment.