mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 14:46:36 +08:00
[优化] 代码优化
This commit is contained in:
@@ -7,6 +7,6 @@ import (
|
||||
|
||||
func CORS() gin.HandlerFunc {
|
||||
config := cors.DefaultConfig()
|
||||
config.AllowOrigins = []string{"https://atsflare.vercel.app", "http://localhost:3000/"}
|
||||
config.AllowOrigins = []string{"https://atsflare.vercel.app", "http://localhost:3000"}
|
||||
return cors.New(config)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user