getDataCounty() {
const headers = {
'Access-Control-Allow-Origin' : '
127.0.0.1:4200',
};
const params = {
token: 'my-token'
};
return this.http.get('
api.travelpayouts.com/data/en' +
'cities.json', {headers: (headers), params: (params)});
}
}
has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Я понимаю причину, но не могу понять почему не получается найти выход