NXP-15056: change way of detecting ajax request