Skip to content

Commit

Permalink
feta: update 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Jun 9, 2022
1 parent 6cf99fd commit a89a6a6
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 @@ -8,7 +8,7 @@ import (
func Cors() gin.HandlerFunc {
return func(c *gin.Context) {
c.Header("Access-Control-Allow-Origin", config.Web.Cors)
c.Header("Server", "busuanzi-by-xcsoft/2.4")
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")
Expand Down

0 comments on commit a89a6a6

Please sign in to comment.