5👍
✅
Try to add xhttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
after var xhttp = new XMLHttpRequest();
.
Source:stackexchange.com