Bug Tracker

Changes between Initial Version and Version 1 of Ticket #10338, comment 5


Ignore:
Timestamp:
Sep 26, 2011, 11:30:24 AM (8 years ago)
Author:
jaubourg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10338, comment 5

    initial v1  
    77If we wanted to document this, and provide a work-around, the best thing I can think of (though it's not very nice) is to do is to override jQuery.ajaxSettings.xhr (something like):
    88
     9{{{
    910var _super = jQuery.ajaxSettings.xhr;
    1011jQuery.ajaxSettings.xhr = function () {
     
    2829    return xhr;
    2930};
     31}}}
    3032
    3133[1] """User agents must filter out all response headers other than those that are a simple response header [2] or of which the field name is an ASCII case-insensitive match for one of the values of the Access-Control-Expose-Headers headers (if any), before exposing response headers to APIs defined in CORS API specifications.