Skip to content

Commit 120cea8

Browse files
authored
Updating YARP configuration (#9412)
1 parent 352df85 commit 120cea8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/WebJobs.Script.Grpc/Server/DefaultHttpProxyService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ public DefaultHttpProxyService(IHttpForwarder httpForwarder)
2424
{
2525
_httpForwarder = httpForwarder ?? throw new ArgumentNullException(nameof(httpForwarder));
2626

27-
_handler = new SocketsHttpHandler();
27+
_handler = new SocketsHttpHandler
28+
{
29+
AllowAutoRedirect = false,
30+
UseCookies = false
31+
};
32+
2833
_messageInvoker = new HttpMessageInvoker(_handler);
2934
_forwarderRequestConfig = new ForwarderRequestConfig();
3035
}

0 commit comments

Comments
 (0)