diff --git a/src/controllers/cors.ts b/src/controllers/cors.ts index f3f07f5..bd4fa9e 100644 --- a/src/controllers/cors.ts +++ b/src/controllers/cors.ts @@ -5,7 +5,7 @@ if (process.env.NODE_ENV !== 'production') { import * as cors from 'cors'; // cors. -var whitelist = ['http://localhost:3000']; +var whitelist = ['http://localhost:3000', 'https://mts-tn.vercel.app']; var corsOptions: cors.CorsOptions = { origin: function (origin, callback) { if (origin && whitelist.indexOf(origin) !== -1) {