Configuring Consul with Envoy's JWTAuthentication

I am trying to configure an Envoy Filter using Consul but it doesn’t seem to apply the configuration correctly.

apiVersion: consul.hashicorp.com/v1alpha1
kind: ProxyDefaults
metadata:
  name: global
spec:
  config:
    lua_filter:
      name: envoy.filters.http.lua
      typed_config:
        "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
        inline_code: |
          -- Called on the response path.
          function envoy_on_response(response_handle)
            response_handle:headers():add("x-custom-header", "Lua_Envoy_Filter")
            responde_handle:logError("Logging Hello")
          end

I then do kubectl apply -f proxydefaults_lua.yaml and reploy the app. But when I make the request to the app endpoint I don’t see the log or the response header.

To note that the app still works (I don’t get any errors) but I am expecting the request to pass through the lua filter which doesn’t seem to be the case

Is anybody able to help with this?