Update index.js
Browse files
index.js
CHANGED
@@ -70,10 +70,11 @@ app.use(async (req, res, next) => {
|
|
70 |
app.use("/api/v1/", apiLimiter);
|
71 |
app.disable("x-powered-by");
|
72 |
app.disable("link")
|
|
|
73 |
app.use(cors({
|
74 |
origin: '*',
|
75 |
methods: ['GET', 'POST'],
|
76 |
-
allowedHeaders: ['Content-Type', 'Authorization']
|
77 |
}));
|
78 |
|
79 |
app.use(bodyParser.json());
|
|
|
70 |
app.use("/api/v1/", apiLimiter);
|
71 |
app.disable("x-powered-by");
|
72 |
app.disable("link")
|
73 |
+
|
74 |
app.use(cors({
|
75 |
origin: '*',
|
76 |
methods: ['GET', 'POST'],
|
77 |
+
allowedHeaders: ['Content-Type', 'Authorization', 'x-api-key'],
|
78 |
}));
|
79 |
|
80 |
app.use(bodyParser.json());
|