[OpenLayers-Trac] [OpenLayers] #3491: Automatically add the "X-Requested-With" header to XHR-requests

OpenLayers trac-20090302 at openlayers.org
Thu Sep 8 03:49:06 EDT 2011


#3491: Automatically add the "X-Requested-With" header to XHR-requests
------------------------+---------------------------------------------------
 Reporter:  marcjansen  |       Owner:  tschaub     
     Type:  feature     |      Status:  new         
 Priority:  minor       |   Milestone:  2.12 Release
Component:  Request     |     Version:  SVN         
 Keywords:              |       State:              
------------------------+---------------------------------------------------
 Many !JavaScript libraries set the non-standard `X-Requested-With` http
 header to signal that the request was sent through the `XMLHttpRequest`
 object.

 This patch suggests adding the `X-Requested-With` header to our AJAX
 requests.

 Please see the dev list for a dicussion of this feature:
 http://lists.osgeo.org/pipermail/openlayers-dev/2011-September/008003.html

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3491>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list