mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
fix google signin
This commit is contained in:
@@ -69,6 +69,12 @@ if (app.Environment.IsDevelopment())
|
||||
}
|
||||
else
|
||||
{
|
||||
// Force HTTPS because prod environment is behind unmanaged proxy.
|
||||
app.Use((context, next) =>
|
||||
{
|
||||
context.Request.Scheme = "https";
|
||||
return next(context);
|
||||
});
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts(); // TODO: check if this should be handled by proxy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user