diff --git a/src/index.ts b/src/index.ts index d8bd9c92..8ae0294b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,12 @@ cloudinary.config({ const app = express(); -app.use(cors()); +const corsOptions = { + origin: 'https://tuilaphu.id.vn', + optionsSuccessStatus: 200 +} + +app.use(cors(corsOptions)); app.use("/api/order/checkout/webhook", express.raw({ type: "*/*" }));