To add configuration-snippet in ingress for traefik ingress controller v2.6

Hi Team,

We have application accessed through 'nginx' Ingress controller which is quite old version and we would like to migrate to latest version of 'traefik' Ingress controller as part of Organization Standard.

Below is the Ingress rule configured for 'nginx' Ingress controller , i am unable to get how to use below annotations for traefik , especially the 'configuration-snippet'.

Could you please suggest , how to use 'configuration-snippet' for traefik controller as i dont find appropriate annotations either examples for middleware .

kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/session-cookie-hash: sha1
nginx.ingress.kubernetes.io/session-cookie-name: fiservroute
nginx.ingress.kubernetes.io/configuration-snippet: |
  proxy_set_header X-ForgeRock-Transactionid $formatted_id;
  more_set_headers "Transaction-ID: $formatted_id";
  proxy_set_header ssl-android-client-cert $ssl_client_cert;
  if ($http_origin ~* "^https?:\/\/((?:localhost:?[0-9]*)||||||||||||||)$") {
    set $cors "true";
  }
  if ($request_method = 'OPTIONS') {
    set $cors "${cors}options";
  }
  if ($cors = "true") {
    add_header 'Access-Control-Allow-Origin' "$http_origin" always;
    add_header 'Access-Control-Allow-Methods' 'PUT,GET,POST,HEAD,PATCH,DELETE' always;
    add_header 'Access-Control-Allow-Headers' 'authorization,x-requested-with,accept-api-version,content-type,cookie' always;
  }
  if ($cors = "trueoptions") {
    add_header 'Access-Control-Allow-Origin' "$http_origin";
    add_header 'Access-Control-Allow-Methods' 'PUT,GET,POST,HEAD,PATCH,DELETE,OPTIONS';
    add_header 'Access-Control-Allow-Headers' 'authorization,x-requested-with,accept-api-version,content-type,cookie';
    add_header 'Access-Control-Max-Age' 600;
    add_header 'Content-Type' 'text/plain charset=UTF-8';
    add_header 'Content-Length' 0;
    return 204;
  }