Browse Source

Fix handler. Closes #1281

pull/1283/head
Sebastian Stehle 6 months ago
parent
commit
9f4dec0c32
  1. 2
      backend/src/Squidex.Infrastructure/Http/SsrfExtensions.cs

2
backend/src/Squidex.Infrastructure/Http/SsrfExtensions.cs

@ -16,7 +16,7 @@ public static class SsrfExtensions
{
public static IHttpClientBuilder EnableSsrfProtection(this IHttpClientBuilder builder )
{
builder.Services.AddSingleton<SsrfProtectionHandler>();
builder.Services.AddTransient<SsrfProtectionHandler>();
builder.AddHttpMessageHandler<SsrfProtectionHandler>();
builder.ConfigurePrimaryHttpMessageHandler(services =>

Loading…
Cancel
Save