add http-server part 7.9.2
This commit is contained in:
parent
c926227245
commit
61dec47fcb
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ const port = 8090;
|
||||||
//CORS aktivieren
|
//CORS aktivieren
|
||||||
//app.use(cors());
|
//app.use(cors());
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: 'http://localhost:8080'
|
origin: 'http://localhost:8090'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.post('/api/command', (req, res) => {
|
app.post('/api/command', (req, res) => {
|
||||||
|
|
Loading…
Reference in a new issue