I have code that redirects an AJAX request and it works normally on localhost , but on the cross-browser server the request is not redirected.
header('Location: http://dominio.com/endereco');
exit;
Is it possible to block AJAX request redirection by default?
Is there any code to enable such redirection?
Can it contain an error in my code?
I make the request using jQuery.ajax:
$.ajax({
url: "http://dominio.com/controller/action",
data:dados,
dataType: "json",
success: Sucesso,
error: Erro
})