Forum Discussion

pelitahmet's avatar
pelitahmet
New Member
1 year ago
Solved

Report BI Server Embeding a report by Yarp Reverse Proxy

Hello Gurus,

We are accessing our reports from another application using reverse proxy which using YARP. We can open the report but when open the report we got a error prompt from report server, clicking OK then continue. Do you have an idea what is wrong?

 

Adding basic authentication information on request header.

 

 

var base64EncodedAuthenticationString = Convert.ToBase64String(
                    System.Text.ASCIIEncoding.UTF8.GetBytes(user.WindowsUsername + ":" + user.WindowsPassword));

                context.Request.Headers.Append("Authorization", "Basic " + base64EncodedAuthenticationString);
                await _next.Invoke(context);

 

 Here is the yarp config 

 

 

"ReverseProxy": {
    "Routes": {
      "route1": {
        "ClusterId": "cluster1",
        "Match": {
          "Path": "{**catch-all}"
        }
      }
    },
    "Clusters": {
      "cluster1": {
        "Destinations": {
          "destination1": {
            "Address": "*********"
          }
        }
      }
    }
  }

 

2 Replies