Hi Devs,

In APIM by default we are allowing to add Access-Control-Allow-Headers in
the CORS configuration, but any reason why we don't provide a configuration
option to add Access-Control-Expose-Headers.

Currently we have to add a outsequence like below to preserve the CORS
related response headers. shouldn't we have an OOB configuration to do this
?

<sequence xmlns="http://ws.apache.org/ns/synapse";
name="cors_headers_expose">
     <property name="Access-Control-Expose-Headers" value="Location"
 scope="transport" type="STRING"/>
</sequence>

Thanks,
Prakhash


-- 
*Prakhash Sivakumar | Senior Software Engineer | WSO2 Inc*
*+94771510080 | [email protected] <[email protected]>
| https://medium.com/@PrakhashS <https://medium.com/@PrakhashS>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to