angular: the sending of data json to backend through HTTP POST in Ionic 4 does not work. [Notice: Trying to get property of non-object]

I try to send an http request through the publication http on Ionic 4 to my PHP backend through the URLhttp: //myexamplehost#1.com/api and he returns me Warning: trying to obtain non-object property ....

When I send my data json through URL http: //myexamplehost#1.com/api through the postman works well. I suppose that the data of my json sent through the publication http on Ionic 4 are somehow incorrect.

So I try to send my json data through my other URL https: //myexamplehost#2.com/api Through the publication http on Ionic 4 and for a long time it works well.

This is what the json sent through postman:

{
"I.D": "",
"date": "2019-09-09",
"name": "jason"
}

And this is what I sent through the http publication on the Ionic 4 page:

        mydata: Idata = {
id: string;
date: string;
name: chain
}

Save data(){
this.dk.insertData (this.mydata) .subscribe ((result: any) => {
console.log (result['_body']);
});

}

This is what the service method looks like:

insertData (data: Idata) {
returns this.http.post (this.configUrl + & # 39; ins = true & # 39 ;, data, {
headers: {& # 39; Content-Type & # 39 ;: & # 39; application / json & # 39 ;,
& # 39; Accept & # 39 ;: & # 39; application / json & # 39 ;,
& # 39; Access-Control-Allow-Methods & # 39 ;: & # 39; POST, GET, OPTIONS, PUT & # 39;
}
});

This is what the backend looks like:

yes (isset ($ _ SERVER['HTTP_ORIGIN'])) {
header ("Access-Control-Allow-Origin: *");
header (& # 39; Access-Control-Allow-Credentials: true & # 39;);
header (& # 39; Access-Control-Max-Age: 86400 & # 39;); // cache for 1 day
}

// Access control headers are received during OPTIONS requests
yes ($ _SERVER['REQUEST_METHOD'] == & # 39; OPTIONS & # 39;) {

yes (isset ($ _ SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
header ("Access-Control-Allow-Methods: GET, POST, OPTIONS");

yes (isset ($ _ SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
header ("Access-Control-Allow-Allow-Headers: {$ _SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']} ");

exit (0);
}

$ postdata = file_get_contents ("php: // input");
$ request = json_decode ($ postdata);
print_r (json_encode ($ request));
// echo json_encode ($ request-> name. "-". $ request-> date);
// echo json_encode ($ request-> tgl);
$ result = $ obj-> insData ("example_tb", "null, & # 39;". date (& # 39; Ym-d & # 39 ;, strtotime ($ request-> date)) "", & # 39; ". $ Request-> name." & # 39; ");

So, what I really want to know is if it is a CORS problem or is a code problem in my situation right there. Because I receive an error message from origin has been blocked by the policy of CORS although in a console. How do I solve these problems?