glow.net.* should provide X-Requested-With header
Reported by Michael Stillwell | October 26th, 2009 @ 12:49 PM | in 1.7
Most major JS libraries (e.g. prototype, jQuery, YUI) add the
header "X-Requested-With: XmlHttpRequest" when making XHR requests.
This facilitates server-side processing. (e.g. Zend Framework can
respond differently if it sees this header.)
This feature should also be implemented by glow.
Comments and changes to this ticket
-
Jake Archibald October 26th, 2009 @ 04:00 PM
- Milestone set to 1.7
- State changed from new to open
- Tag set to defect, net
- Assigned user set to Jake Archibald
Shall get this added shortly. In the meantime you can use the 'headers' option to add this (and other headers) http://www.bbc.co.uk/glow/docs/1.7/api/glow.net.shtml#staticmethod:get
-
Stephen Elson October 26th, 2009 @ 04:34 PM
- State changed from open to review
(from [588b420e922cc1ebcf941cacc764a9dafb003a3a]) net: Adding X-Requested-With: XmlHttpRequest [#158 state:review] http://github.com/glow/glow1/commit/588b420e922cc1ebcf941cacc764a9d...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A JavaScript Library
People watching this ticket
Referenced by
- 158 glow.net.* should provide X-Requested-With header (from [588b420e922cc1ebcf941cacc764a9dafb003a3a]) net: Ad...