Added "ajaxOnly"middleware