Layer7 API Management

Expand all | Collapse all

CORS issue, multiple request headers not working in IE

  • 1.  CORS issue, multiple request headers not working in IE

    Posted 03-14-2019 09:04 PM

    Hello All, 

     

    I am facing an issue on IE 11, Edge where the browser sends more than 1 request header in Access-Control-Allow-Headers with Authorization, Content-Type, Origin. I have added these headers in the Process CORS request, -- accepted headers. When the browser receives the response from CA, the Access-Control-Allow-Headers headers are received on separate lines and not as comma separated values. therefore the browser complains that Content-Type header was not received. Chrome works with such header values but not IE.

     

    I am attaching one link that explains more on less the same issue.

    https://github.com/elastic/elasticsearch/issues/19841

     

    Regards,

    Pramod Talekar



  • 2.  Re: CORS issue, multiple request headers not working in IE

    Posted 03-14-2019 09:17 PM

    the context variable ${response.http.headervalues.<headername>} returns an array containing all the values for the specified header. [value1, value2, ... valuen]

    Therefor you can merge the duplicated headers with header assertion,