<?xml version="1.0" encoding="UTF-8"?>
<scripting xmlns="http://docs.openrepose.org/repose/scripting/v1.0"
language="groovy">
request.headerNames.each { headerName ->
if (!request.getHeader(headerName)) {
request.removeHeader(headerName)
}
}
filterChain.doFilter(request, response)
response.headerNames.each { headerName ->
if (!response.getHeader(headerName)) {
response.removeHeader(headerName)
}
}
</scripting>