Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Jun 9, 2022
2 parents a89a6a6 + 60a62fa commit 2372748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ func Cors() gin.HandlerFunc {
c.Header("Access-Control-Allow-Origin", config.Web.Cors)
c.Header("Server", "busuanzi-by-xcsoft/2.6")
if c.Request.Method == "OPTIONS" {
c.Header("Access-Control-Allow-Methods", "GET,POST,HEAD,OPTIONS")
c.Header("Access-Control-Allow-Headers", "x-bsz-referer")
c.Header("Access-Control-Allow-Methods", "GET, POST, HEAD, OPTIONS")
c.Header("Access-Control-Allow-Headers", "x-bsz-referer, Authorization")
c.Header("Access-Control-Max-Age", "86400")
c.AbortWithStatus(204)
return
Expand Down

0 comments on commit 2372748

Please sign in to comment.