Good morning,
It's kind of crazy that's happening, but I'm doing a request via AJAX sending a GET and the return is okay, that's all right, but this return is a url that after making the request should allow access, but only works if the url that I'm requesting via AJAX I access in the address bar, I can not understand which logic has this?
Example:
$.ajax({
type : "GET",
url : 'http://services.teste.com/'+chaveAcesso,
dataType: 'json',
success: function(retorno) {
if(retorno.url) {
console.log(retorno.url);
}
}
});
The return url is coming but it should have an access privilege and only works if I make the request through the address bar by pasting this address link '+ keyAccess and giving an enter and not via ajax