I need to make a post
request with Ionic 3, but I have no positive result.
Code:
postRequest(){
let body = {
"IdSolicitacao": 0,
"IdUsuarioOrigem": 1,
"IdUsuarioDestino": 3,
"Status": 10,
"data": "2018-12-14T00:00:00",
"IdInstrumento": 1
};
this.http.post('https://prestoapi.azurewebsites.net/api/Solicitacao', body)
.subscribe(
res => {
console.log(res);
},
err => {
console.log("Error occured");
}
);
}
API page: link
Error executing:
polyfills.js: 3 OPTIONS link 405 (Method Not Allowed)