Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -11,7 +11,8 @@ app.use(express.urlencoded({ extended: true }));
|
|
| 11 |
app.use((req, res, next) => {
|
| 12 |
res.header({
|
| 13 |
"Access-Control-Allow-Origin": "*",
|
| 14 |
-
"Access-Control-Allow-Methods": "GET, OPTIONS"
|
|
|
|
| 15 |
});
|
| 16 |
next();
|
| 17 |
});
|
|
|
|
| 11 |
app.use((req, res, next) => {
|
| 12 |
res.header({
|
| 13 |
"Access-Control-Allow-Origin": "*",
|
| 14 |
+
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
| 15 |
+
"Access-Control-Allow-Headers": "Content-Type",
|
| 16 |
});
|
| 17 |
next();
|
| 18 |
});
|