Przeglądaj źródła

modification du CORS

DESKTOP-SMCIPAV\falko 6 miesięcy temu
rodzic
commit
b214d29cc8
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 }));