X
Tap here to go to the mobile version of the site.

Support Forum

Firefox 3.6.13 ajax setRequestHeader('User-Agent', '...') don't work

pzs
पोस्ट किया गया

I did a javascript and in new Firefox version (3.6.13) don't overwrite the "User-Agent" Header in XMLHttpRequest.

Is this a new security feature? :S

The code:

jQuery.ajax({
 beforeSend: function(xhr){xhr.setRequestHeader('User-Agent', '...');},
 url: "...",
 dataType: 'xml',
 success: ...
});
I did a javascript and in new Firefox version (3.6.13) don't overwrite the "User-Agent" Header in XMLHttpRequest. Is this a new security feature? :S The code: <pre><nowiki>jQuery.ajax({ beforeSend: function(xhr){xhr.setRequestHeader('User-Agent', '...');}, url: "...", dataType: 'xml', success: ... });</nowiki></pre>

Modified by cor-el

Additional System Details

यह हुआ

Every time Firefox opened

This started when...

After I updated Firefox to 3.6.13

संस्थापित प्लगइन्स

  • getplusplusadobe16263
  • Foxit Reader Plug-In For Firefox and Netscape
  • Adobe PDF Plug-In For Firefox and Netscape 10.0.0
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Default Plug-in
  • Shockwave Flash 10.1 r102
  • Next Generation Java Plug-in 1.6.0_22 for Mozilla browsers
  • 4.0.50917.0
  • Office Authorization plug-in for NPAPI browsers
  • The plug-in allows you to open and edit files using Microsoft Office applications

अप्लिकेशन

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)

अधिक जानकारी

kjs42 0 समाधान 2 उत्तर
पोस्ट किया गया

सहायक जवाब

I'm seeing this same issue. What is the status of a patch to correct this? It has broken all our AJAX code that sets the UA to ID itself to our servers...

I'm seeing this same issue. What is the status of a patch to correct this? It has broken all our AJAX code that sets the UA to ID itself to our servers...
user297530 0 समाधान 1 उत्तर
पोस्ट किया गया

I experience the same. Is this indeed a new security feature (like on Chrome), or will this be patched again so it can be set again? It broke a vital component of a critical application for me.

I experience the same. Is this indeed a new security feature (like on Chrome), or will this be patched again so it can be set again? It broke a vital component of a critical application for me.
kjs42 0 समाधान 2 उत्तर
पोस्ट किया गया

सहायक जवाब

I contacted Mozilla support for information on this bug, and they were completely useless.

I have searched and searched for more information on this bug, and this is about the only place I found this problem reported. I went into Bugzilla and searched Firefox bugs, and there is nothing about this problem.

So I have opened a new bug against Firefox to get this fixed -- https://bugzilla.mozilla.org/show_bug.cgi?id=627942

Please who are hampered by this stupid bug in Firefox can follow and comment on that bug.

I contacted Mozilla support for information on this bug, and they were completely useless. I have searched and searched for more information on this bug, and this is about the only place I found this problem reported. I went into Bugzilla and searched Firefox bugs, and there is nothing about this problem. So I have opened a new bug against Firefox to get this fixed -- https://bugzilla.mozilla.org/show_bug.cgi?id=627942 Please who are hampered by this stupid bug in Firefox can follow and comment on that bug.
dawpa2000 0 समाधान 3 उत्तर
पोस्ट किया गया

Overriding the user agent is not allowed. This is not a bug.

http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method

Overriding the user agent is not allowed. This is not a bug. http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method