Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Jun 9, 2022
1 parent ff2fc24 commit 60a62fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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-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)
Expand Down

0 comments on commit 60a62fa

Please sign in to comment.