diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 28b34d9..73939cb 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -32,7 +32,7 @@ func main() { r := gin.Default() docs.SwaggerInfo.BasePath = "/api" r.Use(cors.New(cors.Config{ - AllowOrigins: []string{"*"}, + AllowOrigins: []string{"http://localhost:5173"}, AllowMethods: []string{"GET", "DELETE", "PUT", "PATCH", "OPTIONS"}, AllowHeaders: []string{"Origin", "Content-Type"}, ExposeHeaders: []string{"Content-Length"},