Browse Source

Merge pull request #25064 from abpframework/fix/blazor-wasm-streaming-http-only

fix: only enable browser request streaming over HTTPS in `AbpBlazorClientHttpMessageHandler`
pull/25069/head
Engincan VESKE 3 weeks ago
committed by GitHub
parent
commit
6de8a21d82
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/AbpBlazorClientHttpMessageHandler.cs

5
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/AbpBlazorClientHttpMessageHandler.cs

@ -53,7 +53,10 @@ public class AbpBlazorClientHttpMessageHandler : DelegatingHandler, ITransientDe
options.Type = UiPageProgressType.Info;
});
request.SetBrowserRequestStreamingEnabled(true);
if (request.RequestUri?.Scheme == Uri.UriSchemeHttps)
{
request.SetBrowserRequestStreamingEnabled(true);
}
await SetLanguageAsync(request, cancellationToken);
await SetAntiForgeryTokenAsync(request);
await SetTimeZoneAsync(request);

Loading…
Cancel
Save