Can't upload files through Traefik to external service

I have traefik v2 installed on docker and running multiple services inside docker that I can acces and use without problems. In my network I also have other servers which are different physical computers that run other web-services.
I've added the services following this guide:

I've also added an extra host in it so i can redirect all http requests to https. With that my setup is working right, I can acces the web-server and everything works fine except that I can't upload files.
I've tried even with an empty .txt that was 100bytes and the upload fails. I never get any error back because of the way that the web service works, I don't get a failed upload error, it just stays forever uploading. I've experienced the same issue usin nginx before and it was an issue of file limits, but It would work straight away with very small files.

I've also tried adding a maxRequestBodyBytes as seen in here https://docs.traefik.io/middlewares/buffering/ without any success.

What I'm missing?

This is my config file:

http:
  routers:
    gestio-historic:
      entryPoints:
        - "http"
      rule: "Host(`test.mydomain.com`)"
      middlewares:
        - https-redirect
      service: gestio-historic

    gestio-historic-secure:
      entryPoints:
        - "https"
      rule: "Host(`test.mydomain.com`)"
      middlewares:
        - default-headers
        - limit
      tls:
        certResolver: http
      service: gestio-historic

  services:
    gestio-historic:
      loadBalancer:
        servers:
          - url: "http://10.0.0.24:8073"
        passHostHeader: true

  middlewares:
    limit:
      buffering:
        maxRequestBodyBytes: 200000000

    https-redirect:
      redirectScheme:
        scheme: https

    default-headers:
      headers:
        frameDeny: true
        sslRedirect: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        stsIncludeSubdomains: true
        stsPreload: true

I found a solution:
In headers configuration add line: customFrameOptionsValue: SAMEORIGIN
Remove frameDeny: true (it's not removed customFrameOptionsValue overrides it so it has no sense to mantain it in the file).