Procházet zdrojové kódy

modification du CORS

DESKTOP-SMCIPAV\falko před 6 měsíci
rodič
revize
b214d29cc8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      express-server/index.js

+ 1 - 1
express-server/index.js

@@ -35,7 +35,7 @@ const app = express();
 
 // Configure 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
 }));