I have multiple Ajax calls like
(async function(){
await $.ajax({
...
});
... next Ajax call
...
})();
They working fine when i call them from a previous page and land on the scripting Ajax handler site.
But i want that the user dont get shown this page, so i tryed to add
header('Location: ' . $_SERVER['HTTP_REFERER']);
that the user get directed to the source page where he submitted.
Maybe Problems with the await async? I have no alerts or something on the Ajax call Page its just a blank site.
thx for help.