• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ajax requests and http_x_requested_with header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: new Components, or better DynamicElements - CCGoogleMap and CCGoogleMapMarker
  • Next by Date: Install_WebObjects_And_Wonder and Wonder Misc frameworks
  • Previous by thread: Re: new Components, or better DynamicElements - CCGoogleMap andCCGoogleMapMarker
  • Next by thread: Re: Ajax requests and http_x_requested_with header
  • Index(es):
    • Date
    • Thread