Commit 76bdf054 by huangchengyi

1.0

parent f36d1233
Showing with 4 additions and 0 deletions
......@@ -11,6 +11,10 @@ func Cors() gin.HandlerFunc {
corsDomain := config.Get("web.cors_domain").Strings(",")
corsDomain = append(corsDomain, "https://bom.ichunt.com")
corsDomain = append(corsDomain, "https://sz.ichunt.com")
corsDomain = append(corsDomain, "https://www.ichunt.com")
corsDomain = append(corsDomain, "https://ichunt.com")
corsDomain = append(corsDomain, "http://ichunt.com")
return cors.New(cors.Config{
AllowOrigins: corsDomain,
AllowHeaders: []string{"x-requested-with", "Authorization", "Content-Type"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment