Questions tagged [ms-yarp]

For Microsoft Reverse Proxy (https://github.com/microsoft/reverse-proxy) also known as YARP. Different from the other YARP: yarp.it

75 questions
0
votes
0 answers

Can´t Forward to 2 grpc service using Yarp.Proxy microsoft library

Cannot forward to 2 grpcservice with the same name using yarp.proxy. I created two grpc services in two different projects in asp.net core and one project as my gateaway using yarp.proxy, in addition the two projects contain each 1 grpc service name…
0
votes
0 answers

Is there a way to retrieve the proxied destination of a request before the request is fulfilled? (YARP)

Using YARP as a reverse proxy in our API gateway, an authorisation header is applied to each request through a middleware. E.G. private void SetProxyPipeline(IReverseProxyApplicationBuilder proxyPipeline) { …
Damien
  • 1
0
votes
1 answer

Requests using YARP are much slower

I'm making API calls using Postman to some endpoint (e.g. https://example.com/api) and it takes between 150-200ms to get a response. I'm trying to use IHttpForwarder from YARP 2.0. and suddenly my requests start to take 400-700ms to get a response.…
HC1122
  • 404
  • 1
  • 6
  • 19
0
votes
1 answer

Visual Studio Code - Unbound Breakpoints in React-TypeScript App when using a reverse proxy for BFF Authentication

I have a React App, a YARP Proxy and a .NET API. Entrypoint is https://localhost:5005 in my Proxy which redirects me to my Authentication Provider and back to my Frontend. React App is running on http://localhost:3000, when using the following…
0
votes
0 answers

YARP Dynamic Destination Based on current user claims

Does someone know if it's possible to change my YARP cluster destination at runtime based of a value from my current user's claims. The claim is not the value but rather the key to find the value in a cache. The cache sits on top of my DB so help…
Steve
  • 1,061
  • 10
  • 21
0
votes
1 answer

Proxy server response sending

I am trying to send my cached response back to the client but have an error System.InvalidOperationException: The response cannot be cleared, it has already started sending. I am trying to modify response to prevent sending my request further to…
Parmiz
  • 1
0
votes
1 answer

get health status and log it - YARP

I am working with YARP for reverse proxy to communicate with end points. I need to check the health status (like working properly, downtime, transient issues etc). I have followed the configurations mentioned in the following YARP…
azhar rahi
  • 331
  • 4
  • 16
0
votes
0 answers

YARP not forward DevExpress DataSourceLoadOptions parameter to back-end API

I use YARP as an API gateway and DevExpress for ASP.net Core for UI in my microservice solution. UI code (port 7004) gItems.AddSimpleFor(c => c.CustomerID).ColSpan(2) .Label(l =>…
duyan
  • 63
  • 1
  • 8
0
votes
0 answers

Where to host a proxy app with YARP to migrate from .NET Framework to .NET Core?

We have a big ASP.NET Framework application hosted in IIS and we are considering a progressive migration to ASP.NET Core using YARP, as explained here: https://devblogs.microsoft.com/dotnet/incremental-asp-net-to-asp-net-core-migration/ The basic…
Tao Gómez Gil
  • 2,228
  • 20
  • 36
0
votes
0 answers

Is it possible to nest a proxy within C# layout with YARP?

I am working on a proof of concept for a C# backend that proxies the UI from another server (NextJS) to the client's browser. However, I don't just want the proxy to take over the browser. I want something like the layouts in MVC where I can set up…
Bailey Miller
  • 1,376
  • 2
  • 20
  • 36
0
votes
1 answer

Deploying Azure App Service Webjob Using .Net 6 Fails to Start "Failed to bind to address http://127.0.0.1:5000: address already in use"

I ran into an issue while migrating an Azure app service from .Net Core 5 to 6 while also updating the stack configuration in Azure Portal to use .Net version ".Net 6 (LTS)". The app service only contains continuous webjobs that process service bus…
0
votes
0 answers

Page cannot be accessed to due The SSL connection could not be established

I have created two sites in IIS one that that is on https://{host}:443 and the other on https://{host}:444. The webapplication running on 443 is a proxy, that redirects request to port 444. My problem is that when I try to redirect to the 444 page I…
I am not Fat
  • 283
  • 11
  • 36
0
votes
0 answers

How to silently renew Id Token using AddMicrosoftIdentityWebAppAuthentication to Call Downstream API

I am trying to implement the BFF-Gateway pattern (no tokens in the browser) to be used with a React SPA. The BFF is using AddMicrosoftIdentityWebAppAuthentication to handle login and issue a cookie to the SPA. And it is using YARP to proxy api…
Matthew S
  • 900
  • 3
  • 12
  • 26
0
votes
0 answers

Yarp and get an case sensitive path for .axd requests

I have currently setup yarp to proxy request going into to host:444 to host:443 - only port has changed. But doing this i seemed to run into some cors issues, which I tried to resolve by setting the correct location after the redirect was created…
I am not Fat
  • 283
  • 11
  • 36
0
votes
0 answers

Dotnet Proxy optimizes database requests for middleware

I am creating a business proxy to add more request restriction (because the target API does not provide a fine RBAC). To realize this program, I use the YARP extension to have a default proxy and I add a lot of middleware to have restrictions /…