소스 검색

Update CORS configuration to allow requests from localhost

yazid138 1 일 전
부모
커밋
715c165df4
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app.js

+ 1 - 1
app.js

@@ -20,7 +20,7 @@ app.use(express.json())
 app.use(requestLogger)
 app.use(
   cors({
-    origin: 'https://dev-sidali.kemdiktisaintek.go.id',
+    origin: ['https://dev-sidali.kemdiktisaintek.go.id', 'http://localhost:3000'],
     credentials: true,
   })
 )