IB
Size: a a a
IB
E
app.use(function(req, res, next) {
res.setHeader("Access-Control-Allow-Origin", "http://localhost:4207"); // update to match the domain you will make the request from
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');
res.setHeader('Access-Control-Allow-Credentials', true);
next();
});
"/*": {
"target": "http://192.168.2.105:8000",
"secure": false,
"logLevel": "debug",
}
"start": "ng serve --proxy-config proxy.conf.json",
IB
app.use(function(req, res, next) {
res.setHeader("Access-Control-Allow-Origin", "http://localhost:4207"); // update to match the domain you will make the request from
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');
res.setHeader('Access-Control-Allow-Credentials', true);
next();
});
"/*": {
"target": "http://192.168.2.105:8000",
"secure": false,
"logLevel": "debug",
}
"start": "ng serve --proxy-config proxy.conf.json",
E
IB
E
IB
IB
НН
АГ
НН
NH
НН
NH
НН
НН
NH
АГ
<router-outlet
(activate)='onActivate($event)'
(deactivate)='onDeactivate($event)'></router-outlet>