I am having a problem with accessing my response headers under CORS scenario. I am doing a CORS call. So, I configured my API configuration in API Manager to accept CORS requests (that is, CORS is enabled for my REST endpoint).
But when my app (Angular2 app) does a post request it (http.post) does not see the response headers. I checked in Chrome Devtools what the browser is receiving by the remote server and it turned out that all expected response headers are received in the browser. Apparently, Angular does not pass it to my code and I am not able to access the headers. Gunter, suggested me to check for the CORS header
Access-Control-Expose-Headers
My question: Where can I tell WSO2 API Manager to pass pass or set this header when CORS is enabled? I tried in api-manager.xml but I did not see the expected header (in my case the header 'Location') after a restart.
Angular2 's Http.post is not returning headers in the response of a POST method invocation