Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
add `0.0.0.0` as an allowed origin by default
Jeffrey Morgana027a7dd65bb
diff --git a/server/routes.go b/server/routes.goindex e98457ab6..c1a694c23 100644--- a/server/routes.go+++ b/server/routes.go@@ -323,7 +323,6 @@ func CopyModelHandler(c *gin.Context) {func Serve(ln net.Listener, extraOrigins []string) error {config := cors.DefaultConfig()config.AllowWildcard = true- // only allow http/https from localhostallowedOrigins := []string{"http://localhost","http://localhost:*",@@ -333,6 +332,10 @@ func Serve(ln net.Listener, extraOrigins []string) error {"http://127.0.0.1:*","https://127.0.0.1","https://127.0.0.1:*",+ "http://0.0.0.0",+ "http://0.0.0.0:*",+ "https://0.0.0.0",+ "https://0.0.0.0:*",}allowedOrigins = append(allowedOrigins, extraOrigins...)config.AllowOrigins = allowedOrigins