• 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
Re: Ajax requests and http_x_requested_with header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ajax requests and http_x_requested_with header


  • Subject: Re: Ajax requests and http_x_requested_with header
  • From: Alexis Tual <email@hidden>
  • Date: Wed, 25 Apr 2012 15:17:01 +1100

Hi Chuck !

2012/4/25 Chuck Hill <email@hidden>
Hi Alexis,


On 2012-04-23, at 7:31 PM, Alexis Tual wrote:

> 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.

Good work!


> 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 ?


Over the years there have been a lot of problems with headers that change names.   The usual solution has been (2) and I recommend that.
Thanks for your advice, I will change it / test it / pull request it

Have a nice day or night

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

References: 
 >Ajax requests and http_x_requested_with header (From: Alexis Tual <email@hidden>)

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