This commit is contained in:
parent
9c6d71fbc7
commit
0754a99bbb
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ app.use(cors());
|
|||
app.options('/api/command', cors()); // für eine bestimmte Route
|
||||
|
||||
// Verwende die Middleware, um POST-Body als JSON zu lesen
|
||||
app.use(express.json());*/
|
||||
app.use(express.json());
|
||||
|
||||
app.use((req, res, next) => {
|
||||
console.log('CORS headers set');
|
||||
next();
|
||||
});
|
||||
});*/
|
||||
|
||||
app.post('/api/command', (req, res) => {
|
||||
executeCommand();
|
||||
|
|
Loading…
Reference in a new issue