Added abiliy to expose headers in XS middleware