Angular 2 + NodeJS + Mongoose - post data from angular 2 to rest api nodejs backend. Node api logs: OPTION /url, POST headers doesnt work
<p>I have issue with posting data from angular2 frontend api to backend client - nodeJS + mongoose. 
On Angular2 client I make console.log using data, which I'am sending, and service display correct values. </p>

<p>On NodeJS backend I try also to console.log posted data, but I got undefined. Please look at code below, and try to figure out what I make wrong. I tried to this also with <code>Promise&lt;&gt;</code> and <code>Observable&lt;&gt;</code>, with same effect.</p>

<p>PS. GET data from NodeJS api via Angular 2 is working well. </p>

<p>PS2. Important fact, Problem exist, because angular2 doesnt make a headers in post or put. Every time, when I make POST Req, NODE Server logs <code>OPTION /login</code>. What that's mean? </p>

<p>Angular2:</p>

<pre><code>signIn(data: Object): Observable&lt;User&gt; {
    let bodyString = JSON.stringify(data);

    let headers = new Headers({
        'Content-Type': 'application/json',
        'Access-Control-Allow-Origin': '*'
    });
    let options = new RequestOptions({ headers: headers });

    console.log("data: ", data, "\nbodyString: ", bodyString, "\nHeaders: ", headers, "\nOptions: ");

    return this.http
        .post( this.signInUrl, bodyString, {headers: headers})
        .map( (res:Response) =&gt; res.json() )
        .catch((error:any) =&gt; Observable.throw(error.json().error || 'Server error'));

}
</code></pre>

<p>NodeJS:</p>

<pre><code>[...]
// configure app
app.use(morgan('dev'));

app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

var mongoose    = require('mongoose');

var Test        = require('./model/test');
var User        = require('./model/user.schema');

mongoose.connect('mongodb://localhost:27017/lounge');

app.set('secret', config.secret);

app.get('/', function(req, res) {
    res.json({ message: 'hooray! welcome to our api!' });
});    
app.post('/login', function (req, res) {
        console.log("Recived login request!", req.body);
    });
[...]
</code></pre>