fix: drop CORS support

This commit is contained in:
JustSong
2022-11-23 16:05:09 +08:00
parent 00ee736e13
commit db13ee6f93
4 changed files with 0 additions and 17 deletions
-12
View File
@@ -1,12 +0,0 @@
package middleware
import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
)
func CORS() gin.HandlerFunc {
config := cors.DefaultConfig()
config.AllowOrigins = []string{"https://gin-template.vercel.app", "http://localhost:3000/"}
return cors.New(config)
}