diff --git a/src/app.ts b/src/app.ts index 9392276..dc02396 100644 --- a/src/app.ts +++ b/src/app.ts @@ -9,7 +9,15 @@ const PORT = process.env.PORT || 3000; // Middleware // Allow requests from frontend dev servers on ports 3001 and 3000 -app.use(cors({ origin: ["http://localhost:3001", "http://localhost:3000"] })); +app.use( + cors({ + origin: [ + "http://localhost:3001", + "http://localhost:3000", + "https://apidevportal.aspi-indonesia.or.id", + ], + }) +); app.use( express.json({ verify: (req: any, _res, buf: Buffer) => {