get the ingress controller configmap in yaml.
kubectl get configmap configmapname -o yaml > nginx_conf.yaml
set allow-snippet-annotations to true and apply the setup
kubectl apply -f nginx_conf.yaml
run curl command to verify headers
curl -I url