Commit 3616adfc by JustSong

fix: allow all origins (close #20)

parent 15ac1356
......@@ -7,6 +7,6 @@ import (
func CORS() gin.HandlerFunc {
config := cors.DefaultConfig()
config.AllowOrigins = []string{"https://one-api.vercel.app", "http://localhost:3000/"}
config.AllowAllOrigins = true
return cors.New(config)
}
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