Merge pull request #52 from songquanpeng/main

Fork Sync: Update from parent repository
This commit is contained in:
quzard 2023-06-20 22:14:33 +08:00 committed by GitHub
commit 531634904e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,6 @@ func CORS() gin.HandlerFunc {
config.AllowAllOrigins = true
config.AllowCredentials = true
config.AllowMethods = []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}
config.AllowHeaders = []string{"Origin", "Content-Length", "Content-Type", "Authorization", "Accept", "Connection", "x-requested-with"}
config.AllowHeaders = []string{"*"}
return cors.New(config)
}