瀏覽代碼

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,
   })
 )