Skip to content

Commit f7a2a34

Browse files
Remove some unnecessary code. FetchCredentialsOption.SameOrigin is the default anyway.
1 parent deaa884 commit f7a2a34

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Components/Blazor/Blazor/src/Hosting/WebAssemblyHost.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Threading;
66
using System.Threading.Tasks;
7-
using Microsoft.AspNetCore.Blazor.Http;
87
using Microsoft.AspNetCore.Blazor.Rendering;
98
using Microsoft.Extensions.DependencyInjection;
109
using Microsoft.JSInterop;
@@ -18,12 +17,6 @@ internal class WebAssemblyHost : IWebAssemblyHost
1817
private IServiceScope _scope;
1918
private WebAssemblyRenderer _renderer;
2019

21-
static WebAssemblyHost()
22-
{
23-
// This default most closely matches what web developers expect
24-
WebAssemblyHttpMessageHandlerOptions.DefaultCredentials = FetchCredentialsOption.SameOrigin;
25-
}
26-
2720
public WebAssemblyHost(IServiceProvider services, IJSRuntime runtime)
2821
{
2922
Services = services ?? throw new ArgumentNullException(nameof(services));

0 commit comments

Comments
 (0)