Hi Omindu, Could you please try by adding this?
<header name="Access-Control-Allow-Origin" action="remove" scope="transport"/> Thanks On Mon, Apr 9, 2018 at 1:33 PM, Omindu Rathnaweera <omi...@wso2.com> wrote: > Hi Team, > > Is it possible to remove any header from the API response using [1] or is > it specific to certain headers. Currently I'm getting the following headers > in the response and I tried to remove them following [1]. > > Access-Control-Allow-Origin: > Access-Control-Allow-Methods: > Access-Control-Allow-Headers: > Content-Type: > > Added the following in the main sequence but the headers were not removed. > > <property name="Access-Control-Allow-Origin" scope="transport" > action="remove"/> > <property name="Access-Control-Allow-Methods" scope="transport" > action="remove"/> > <property name="Access-Control-Allow-Headers" scope="transport" > action="remove"/> > <property name="Content-Type" scope="transport" action="remove"/> > > Is there something additional should be done other than adding the above > to default sequences ? (Tried this in a WUM updated APIM 2.1.0). > > [1] - https://docs.wso2.com/display/AM210/Remove+Specific+ > Request+Headers+From+Response > > Thanks, > Omindu. > > -- > Omindu Rathnaweera > Senior Software Engineer, WSO2 Inc. > Mobile: +94 771 197 211 > -- Shakila Sasikaran Software Engineer Mobile :+94 (0) 77 526 6848 shak...@wso2.com WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev