Skip to content

Commit

Permalink
add whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldhanekaa committed Apr 17, 2021
1 parent ae5562f commit 386c9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 386c9dc

Please sign in to comment.