Enable custom headers (ex Strict-Transport-Security) in listener?

I’m using the vault listener and for compliance, I need to add the Strict-Transport-Security header. Is there an easy way of doing this?