1use headers:
2
3let HEADER: HttpHeaders = new HttpHeaders();
4HEADER.append('Access-Control-Allow-Origin', '*');
5HEADER.append('Content-Type', 'application/json');
6HEADER.append('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');