fix google signin

This commit is contained in:
2023-12-27 17:05:24 +01:00
parent 0c90e19895
commit f5a321d821
+6
View File
@@ -69,6 +69,12 @@ if (app.Environment.IsDevelopment())
} }
else 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. // 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 app.UseHsts(); // TODO: check if this should be handled by proxy
} }