Social Media Preview Fix
All checks were successful
Build and deploy / Publish image (push) Successful in 18m15s
All checks were successful
Build and deploy / Publish image (push) Successful in 18m15s
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<base href="/"/>
|
||||
@* TODO: скачать шрифты *@
|
||||
<meta property="og:image" content="/favicon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/css/styles.css" asp-append-version="true" />
|
||||
|
||||
@@ -24,12 +24,7 @@ builder.Services.AddControllersWithViews(options =>
|
||||
}).AddMicrosoftIdentityUI().AddDataAnnotationsLocalization();
|
||||
builder.Services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
options.RequireHeaderSymmetry = false;
|
||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
|
||||
|
||||
// TODO : it's a bit unsafe to allow all Networks and Proxies...
|
||||
options.KnownNetworks.Clear();
|
||||
options.KnownProxies.Clear();
|
||||
});
|
||||
|
||||
var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
|
||||
|
||||
Reference in New Issue
Block a user