Nginx add_header always, traefik alternative

Hi,
when I enable whiteList or basicAuth, all other headers are not sent.
Is this a correct behaviour? Is there a way to send the headers with these two configurations enabled?
Here is my configuration:

deploy:
      labels:
        - traefik.frontend.rule=Host:$DOMAIN
        - traefik.enable=true
        - traefik.port=$PORT
        - traefik.tags=traefik-public
        - traefik.docker.network=$NETWORK
        - traefik.frontend.entryPoints=http,https
        - traefik.frontend.redirect.entryPoint=https
        - traefik.frontend.headers.STSSeconds=315360000
        - traefik.frontend.headers.browserXSSFilter=true
        - traefik.frontend.headers.customResponseHeaders=Permissions-Policy:camera=()
        - traefik.frontend.headers.forceSTSHeader=true
        - traefik.frontend.headers.frameDeny=true
        - traefik.frontend.headers.referrerPolicy=same-origin
        - traefik.frontend.headers.contentTypeNosniff=true
        - traefik.frontend.whiteList.sourceRange=$SOURCE_IP

STS, referretPolicy, Content Type, etc. are not sent. If I remove traefik.frontend.whiteList.sourceRange=$SOURCE_IP, those headers are sent

This is something achievable on nginx with this directive

add_header name value always;