Добавлена подсветка воспроизводимой песни
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
@@ -51,6 +52,14 @@ public class Program
|
||||
options.Cookie.HttpOnly = true;
|
||||
options.Cookie.IsEssential = true;
|
||||
options.Cookie.SameSite = SameSiteMode.Lax;
|
||||
options.Cookie.MaxAge = TimeSpan.FromDays(30); // persistent across browser restarts
|
||||
});
|
||||
|
||||
builder.Services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
|
||||
options.KnownNetworks.Clear(); // trust all proxies in Docker network
|
||||
options.KnownProxies.Clear();
|
||||
});
|
||||
|
||||
// JWT
|
||||
@@ -129,6 +138,7 @@ public class Program
|
||||
|
||||
app.MapOpenApi();
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
app.UseCors("Production");
|
||||
|
||||
if (!app.Environment.IsDevelopment())
|
||||
|
||||
Reference in New Issue
Block a user