From f2e1f9d9fb64c6e6eec251187349dd867252692e Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Tue, 24 Sep 2019 08:18:31 -0600 Subject: [PATCH] Fixes #757 --- src/UniversalDashboard/Server/ServerStartup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UniversalDashboard/Server/ServerStartup.cs b/src/UniversalDashboard/Server/ServerStartup.cs index c5e72c7a..e00d29d3 100644 --- a/src/UniversalDashboard/Server/ServerStartup.cs +++ b/src/UniversalDashboard/Server/ServerStartup.cs @@ -70,6 +70,9 @@ public void ConfigureServices(IServiceCollection services) options.Cookie.HttpOnly = true; options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest; }); + + var serviceDescriptor = services.FirstOrDefault(descriptor => descriptor.ServiceType.Name == "IRegistryPolicyResolver"); + services.Remove(serviceDescriptor); } public void Configure(IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IHostingEnvironment env, ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IApplicationLifetime lifetime)