Is necessary "Cordova Plugin Whitelist" on "Ionic V3" for request's to webapi?


#1

I’v problem’s in request to my webapi “endpoint with https”, in the ionic app i received 404 not found, but in “Postman” i receive 200.

check(): any {
return new Promise(resolve => {
if (this.getData()) {
resolve(this.getData());
} else {
if (this.network.type !== ‘unknown’) {
this.http.post(this.urlApi, this.makeData())
.toPromise()
.then(data => {
let response = this.extractData(data);
this.success = response.Allow;
this.saveData(true);
resolve(response);
})
.catch(e => {
console.log(“Erro ao confirmar se o dispositivo pode usar este app!”, e)
});
} else {
this.presentAlert(“Liberação do App”, “É necessário que você tenha acessoa internet para verificar se pode utilizar este aplicativo!”);
}
}
});
}

Is necessary “Cordova Plugin Whitelist” on “Ionic V3” for allow request’s to webapi?