Custom request header not being passed

I am trying to pass custom headers in the request message and it is not working. I have copy/pasted code from this headers doc. The response headers are showing up but the request headers are not.

This is my traefik route config file.

  routers:
    test:
      entryPoints:
        - "https"
      rule: "Host(`test.domain.com`)"
      service: test
      middlewares:
        - testHeader@file
  middlewares:
    testHeader:
      headers:
        customRequestHeaders:
          X-Script-Name: "test"
        customResponseHeaders:
          X-Custom-Response-Header: "value"
  services:
    test:
      loadBalancer:
        servers:
          - url: "http://192.168.50.3:5181/"
        passHostHeader: true

I honestly have no idea why the response header is there but the request header is not. I have seen many posts about the response headers but none about the request when the response is working. Most are because the middleware is not linked to the router but it obviously is in this case since the response header is there.

Any assistance would be greatly appreciated!

How should the request header be shown in the browser console? It will be added by Traefik before the request is proxied/forwarded to the target service.

You can see it in the response html (not headers) when you use something like traefik/whoami to echo requests.