When trying to send a GET request:
<script> $.get("https://yandex.com/search/xml?l10n=en&user=user&key=03.735472930:8e23fc56f36be6dedcf3896ee8a3fa71", function (data) { console.log(data); }); </script> I get the error:
Access to XMLHttpRequest at ' https://yandex.com/search/xml?l10n=en&user=user&key=03.735472930:8e23fc56f36be6dedcf3896ee8a3fa71 ' from origin ' http: // localhost: 8080 ' has been accessed by CORS No Access Control -Allow-Origin 'header is present on the requested resource.
In the settings of Yandex.XML, the ip-address is 127.0.0.1
The script is executed in the View asp.net project on Visual Studio 2017 (On VM VirtualBox, Windows 10)
What is the problem?