Update index.js
Browse files
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());
|