diff --git a/backend/main.go b/backend/main.go index d43a15e..84f04d6 100644 --- a/backend/main.go +++ b/backend/main.go @@ -56,7 +56,11 @@ func serveFile(c *gin.Context, filename string) error { func main() { r := gin.Default() r.Use(cors.New(cors.Config{ - AllowOrigins: []string{"http://localhost:8080", "http://localhost:5000"}, + AllowOrigins: []string{ + "http://localhost:8080", + "http://localhost:5000", + "https://yt-dls.andreafazzi.eu", + }, AllowCredentials: true, AllowHeaders: []string{"*"}, }))