Modifing allowHeaders to use function.
Baseline for listing-6.12a
Adding a function to validate x- headers