Commit 619cd36c by huangchengyi

1.0

parent 65243ed5
Showing with 2 additions and 0 deletions
......@@ -15,6 +15,8 @@ func Cors() gin.HandlerFunc {
corsDomain = append(corsDomain, "https://www.ichunt.com")
corsDomain = append(corsDomain, "https://ichunt.com")
corsDomain = append(corsDomain, "http://ichunt.com")
corsDomain = append(corsDomain, "https://t.ichunt.com")
corsDomain = append(corsDomain, "http://t.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