Setting HSTS headers

Hi,

I have setup my middleware using the file provider as such:

http:
  middlewares:
    redirect:
      redirectScheme:
        scheme: https

    hsts:
      headers:
        frameDeny: true
        contentTypeNosniff: true
        browserXssFilter: true
        forceSTSHeader: true
        sslRedirect: true
        stsPreload: true
        stsSeconds: 315360000
        stsIncludeSubdomains: true

    secure:
      chain:
        middlewares:
          - redirect
          - hsts

And in my docker-compose.yml I am setting the following labels:

      - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
      - "traefik.http.routers.http-catchall.entrypoints=http"
      - "traefik.http.routers.http-catchall.middlewares=secure@file"

I can see in the Traefik dashboard that the router is using the middleware. The middleware configuration looks correct - yet when looking in the Chrome network console, I do not see the respective headers.

I have also tried defining the middleware through docker labels, to rule out that it's not because of mixing docker + file providers. The result is the same.

My goal here is:

  1. Global HTTP -> HTTPS redirect.
  2. Global definition of standard headers.

Seems related to what we can observe here: