I write a new application to get Microsoft Product. A found in rg-adguard.net
can get link max speed from Microsft.
So, I tried to create a site same rg-adguard.net
but require connect to rg-adguard.net
to get Microsft products ISO file.
You can see a code look like this:
var url = 'https://tb.rg-adguard.net/php/get_version.php';
$.get(
url,
"type_id=" + type_id,
function (result) {
if (result.type == 'Error base SQL') {
alert('Error base SQL');
return(false);
}
else {
var options = '';
$(result.versions).each(function() {
options += '<option value="' + $(this).attr('version_id') + '">' + $(this).attr('name') + '</option>';
});
$('#version_id').html('<option value="0">- ' + selversion + ' -</option>'+options);
$('#version_id').attr('disabled', false);
$('#edition_id').html('<option value="0">- ' + seledition + ' -</option>'+options);
$('#edition_id').attr('disabled', true);
$('#language_id').html('<option>- ' + sellanguage + ' -</option>');
$('#language_id').attr('disabled', true);
$('#arch_id').html('<option>- ' + selachitecture + ' -</option>');
$('#arch_id').attr('disabled', true);
}
},
"json"
);
});
I tried on my website is: https://sharengay.com But it shows an error look like:
Failed to load https://tb.rg-adguard.net/php/get_version.php?type_id=1: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://sharengay.com' is therefore not allowed access.
How to pass and can get data?