Fixed a bug where ajax did not pass the correct header to the server to indicate that the current request is an ajax request