async function getData (url) {
const proxyUrl = 'https://cors-anywhere.herokuapp.com/';
const response = await fetch(proxyurl + url);
return await response.json();
}
console.log(getData('https://api.vk.com/method/friends.get?access_token=(токен)&v=5.52'))