randydev commited on
Commit
cb9fba7
·
verified ·
1 Parent(s): 9502566

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -3
index.js CHANGED
@@ -76,10 +76,9 @@ const allowedOrigins = [
76
  ];
77
 
78
  app.use(cors({
79
- origin: "*",
80
- methods: ['GET', 'POST'],
81
  allowedHeaders: ['Content-Type', 'Authorization', 'x-api-key'],
82
- credentials: true,
83
  }));
84
 
85
  app.use(bodyParser.json());
 
76
  ];
77
 
78
  app.use(cors({
79
+ origin: allowedOrigins,
80
+ methods: ['GET', 'POST', 'PUT', 'DELETE'],
81
  allowedHeaders: ['Content-Type', 'Authorization', 'x-api-key'],
 
82
  }));
83
 
84
  app.use(bodyParser.json());