diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 761c54c..0bc0e81 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ // Cualquier petición que empiece con /api... '/api': { // ...redirígela a nuestro backend de .NET - target: 'http://localhost:5045', // ¡USA HTTP, NO HTTPS! + target: 'https://widgets.eldia.com', //'http://localhost:5045', // Cambia el origen de la petición para que el backend la acepte changeOrigin: true, // No necesitamos reescribir la ruta, ya que el backend espera /api/...