fix: allow all origins (close #20)
This commit is contained in:
parent
34a3329f5f
commit
1dd92a3f92
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user