Accept header for XHR has been simplified

Published: | Categories: Networking


Firefox was previously sending text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 as the Accept HTTP header’s value for the XMLHttpRequest.send method when no developer-defined value is given with the setRequestHeader method. The default value will be */* on Firefox 51 and later according to the XMLHttpRequest Level 2 spec.