<script>
$(document).ready(function(){
$.ajax({
url:'...',
type: 'GET',
dataType: 'jsonp',
processData: true,
crossDomain: true,
beforeSend: function(xhr){
xhr.setRequestHeader('X-SOMETHING-Key', 'lettersandnumbers')},
success: function(data){
console.log(data);
}
});
});
</script>
I changed key values, because it's rather private. Also url.
And I get such errors in console:
index.html:1 The SSL certificate used to load resources from ... will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.
jquery.min.js:2 GET ...callback=jQuery3310028832911017486307_1522854704209&_=1522854704210 net::ERR_ABORTED
I got order to read JSON data from url and while downloading data set header request 'X-SOMETHING-KEY' with value 'lettersandnumbers'. I didn't make any mistake in here.