0
Good morning,
It’s kind of crazy what’s happening, but I’m making a request via AJAX sending a GET and the return is ok, it’s all right, but this return is a url that after the request should allow access, but it only works if the url I am ordering via AJAX I access in the address bar, I can’t 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 request it from the address bar by pasting this address http://services.teste.com/'+keyAccess and giving a enter and not via ajax
The return is used to validate if the person has access is this?
– Laerte
The return returns a url to generate an access, for example: urlretorno.com.br/novoidacesso and this url urlretorno.com.br/novoidacesso is coming, but it doesn’t work, but if I copy the ajax call url and paste the url return urlretorno.com.br/novoidaccess will work :S, for example go to the url and paste http://services.test.com/keyAccess ai will return urlretorno.com.br/novoidacess working, via ajax not working
– Vitor Schweder