Fixing Ajax request header check.