|
|
@@ -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
|
|
|
}));
|
|
|
|