Facing the issue in match host and set the http request header in EnvoyFilter

We trying to add the http request header in EnvoyFilter. the header was not passed in http request header.

Please validate the yaml. PFB.
If any issue please help us.

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: apr30-vs
namespace: apr30-test
spec:
workloadSelector:
labels:
app: apr30-test-vs
configPatches:

  • applyTo: HTTP_FILTER
    match:
    context: SIDECAR_INBOUND
    listener:
    filterChain:
    filter:
    name: “envoy.http_connection_manager”
    subFilter:
    name: “envoy.router”
    patch:
    operation: INSERT_BEFORE
    value: # lua filter specification
    name: envoy.lua
    typed_config:
    @type”: “type.googleapis.com/envoy.config.filter.http.lua.v2.Lua
    inlineCode: |
    function envoy_on_request(request_handle)
    headers = request_handle:headers()
    if request_handle:headers():get(“host”) != “test.example.com:8045” then
    request_handle:headers():add(“opco”, “222”)
    end
    end