Refactor VK service URLs to use 'vk.ru' instead of 'vk.com' for consistency; update CORS configuration to allow additional methods and origins, enhancing API security and flexibility.
This commit is contained in:
@@ -103,7 +103,7 @@ class VkAlbumService
|
||||
public function saveImagesToUploadServer($albumId, $server, $photosList, $hash)
|
||||
{
|
||||
// URL для запроса
|
||||
$url = 'https://api.vk.com/method/photos.save';
|
||||
$url = 'https://api.vk.ru/method/photos.save';
|
||||
|
||||
// Подготовка данных для отправки
|
||||
$postFields = [
|
||||
|
||||
Reference in New Issue
Block a user