support whitelistHeaders and headerTransforms