I'm trying to send a form to an API with the Angle link, but I'm not getting it:
Code:
save(auditoria):Observable <{}>{
let headers = new Headers();
headers.append('Content-Type', 'application/json');
let options = new RequestOptions({ headers: headers });
return this.http.post('${Utils.WEBSERVICE}/api/audit', auditoria, options).map( (res:Response) => res.json());
}
This is how it looks in the console
Request URL: link
Request Method: OPTIONS
Status Code: 404 Not Found
In my API there is nothing that receives the verb options, when I make the same send using POSTMAN everything happens normal, it just does not work for the application I'm building.