Send Post core request from ionic blank app

Job ID: 31237028

Budget: €8 – €30 EUR

Hello, I'm seeking for help to send just a post request to http://cors.api.com/api, but I'm getting an error "Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://cors.api.com/api. Raison : échec de la requête CORS"

I tried to set a proxy to link localhost to http://cors.api.com/api, but still getting another error 404: "localhost/api" not found:
this is my ionic.config.json:
{
"name": "ionic-app-base",
"integrations": {},
"type": "angular",
"v2": true,
"typescript": true,
"proxies": [
{
"path": "/api",
"proxyUrl": "http://cors.api.com/api"
}
]
}


this is my home.page.ts:
import { Component } from '@angular/core';
import { HttpClient} from '@angular/common/http'

@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {

constructor(public http: HttpClient) {
this.readAPI('/api')
.subscribe((data) => {
console.log("result")
console.log(data);
});
}
readAPI(URL: string){
return this.http.post(URL, {});
}

}