DESKTOP-SMCIPAV\falko 6 месяцев назад
Родитель
Сommit
b214d29cc8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      express-server/index.js

+ 1 - 1
express-server/index.js

@@ -35,7 +35,7 @@ const app = express();
 
 
 // Configure CORS
 // Configure CORS
 app.use(cors({
 app.use(cors({
-  origin: 'http://localhost:4200', // Remplacez par l'URL de votre frontend Angular
+  origin: 'https://angular-preprod.foodgame.fr', // Remplacez par l'URL de votre frontend Angular
   optionsSuccessStatus: 200 // Facultatif : indique le statut de succès pour les pré-vérifications OPTIONS
   optionsSuccessStatus: 200 // Facultatif : indique le statut de succès pour les pré-vérifications OPTIONS
 }));
 }));