Ajax requests and http_x_requested_with header
Ajax requests and http_x_requested_with header
- Subject: Ajax requests and http_x_requested_with header
- From: Alexis Tual <email@hidden>
- Date: Tue, 24 Apr 2012 13:31:30 +1100
Hi list,
here's a puzzle I've solved half way :
On a production server (OS X Server 10.6.8 & Apache 2.2), I got js errors on Wonder apps, the typical one being AjaxTabbedPanel is not defined.
After hours of hair pulling, I've nailed it : on an ajax request, Apache or the adaptor somehow changes the http header "x-requested-with" to "http_x_requested_with", causing the ERXAjaxApplication.isAjaxRequest to return false and as a result all sorts of on demand resource loading problems.
Now, how do I fix this ? I see 2 options :
1) Mess with apache modules (mod_headers...) or confs to restore this "x-requested-with" header
2) Complete the ERXAjaxApplication.isAjaxRequest to check also for the http_x_requested_with
What do you think ? Has someone already had this issue ?
Thanks all for your help
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden