I am trying to change the http host header using request transformer, I do not get an error but the header is not getting changed. Similarly I am trying to replace the http host header with the same scenario. Checked the service and also the kong proxy, nothing getting modified. I wonder how we can check the execution of the Kong plugins.
Modify Header
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: host-header-replace
config:
replace:
headers:
- host: httpbin.org
- security: httpbin.org
plugin: request-transformer
Remove Header
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: remove-host-header-
config:
remove:
headers:
- host: httpbin.org
plugin: request-transformer