Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendat1011 committed Jun 30, 2024
1 parent 482458a commit f8667aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*/*" }));

Expand Down

0 comments on commit f8667aa

Please sign in to comment.