remove UseBlazorFrameworkFiles as no longer needed
This commit is contained in:
parent
c9c8e20511
commit
3d49ab2ae0
|
@ -68,9 +68,6 @@ namespace Oqtane
|
||||||
services.AddOptions<List<Database>>().Bind(Configuration.GetSection(SettingKeys.AvailableDatabasesSection));
|
services.AddOptions<List<Database>>().Bind(Configuration.GetSection(SettingKeys.AvailableDatabasesSection));
|
||||||
services.Configure<HostOptions>(opts => opts.ShutdownTimeout = TimeSpan.FromSeconds(10)); // increase from default of 5 seconds
|
services.Configure<HostOptions>(opts => opts.ShutdownTimeout = TimeSpan.FromSeconds(10)); // increase from default of 5 seconds
|
||||||
|
|
||||||
// setup HttpClient for server side in a client side compatible fashion ( with auth cookie )
|
|
||||||
services.AddHttpClients();
|
|
||||||
|
|
||||||
// register scoped core services
|
// register scoped core services
|
||||||
services.AddScoped<IAuthorizationHandler, PermissionHandler>()
|
services.AddScoped<IAuthorizationHandler, PermissionHandler>()
|
||||||
.AddOqtaneScopedServices()
|
.AddOqtaneScopedServices()
|
||||||
|
@ -78,6 +75,9 @@ namespace Oqtane
|
||||||
|
|
||||||
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||||
|
|
||||||
|
// setup HttpClient for server side in a client side compatible fashion ( with auth cookie )
|
||||||
|
services.AddHttpClients();
|
||||||
|
|
||||||
// register singleton scoped core services
|
// register singleton scoped core services
|
||||||
services.AddSingleton(Configuration)
|
services.AddSingleton(Configuration)
|
||||||
.AddOqtaneSingletonServices();
|
.AddOqtaneSingletonServices();
|
||||||
|
@ -199,7 +199,6 @@ namespace Oqtane
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
app.UseTenantResolution();
|
app.UseTenantResolution();
|
||||||
app.UseJwtAuthorization();
|
app.UseJwtAuthorization();
|
||||||
app.UseBlazorFrameworkFiles();
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
app.UseCors();
|
app.UseCors();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user