Media upload from URL not working

how is this marked as a solution? I know its a cors thing and have added this to middlewares.js :slight_smile: name: “strapi::cors”,
config: {
origin: [
http://localhost:3001”,
http://localhost:3000”,
https://mateaspares.com”,
http://localhost:1337”,
https://mateas-pares-backend.fly.dev”,
https://mateas-staging.netlify.app”,
https://mateasparesstrapi-production.up.railway.app”,
https://media.mateaspares.com
],
methods: [“GET”, “POST”, “PUT”, “PATCH”, “DELETE”, “HEAD”, “OPTIONS”],
headers: [“Content-Type”, “Authorization”, “Origin”, “Accept”],
keepHeaderOnError: true,
},

the last domain is the one i am trying to fetch from