소스 검색

modification du CORS

DESKTOP-SMCIPAV\falko 6 달 전
부모
커밋
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
 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
 }));