HTTP_X_REQUESTED_WITH not set in ajax call with jquery
I am using Django to develop a new website and I am facing a problem with an ajax request. I have been googling a lot and read a lot of posts and articles (most of them explain the same). The issue: The ajax call is executed and I received the request in the view, but the request.is_ajax() returns false. For what I know the request.is_ajax() checks the value of the HTTP_X_REQUESTED_WITH header, but I can't see it in the request headers, thus I cannot check the is_ajax() in my view. HTML form: <form id="search-form" method="get" action="/search/"> <input type="text" id="search" name="search"