in src/Relecloud.Web.CallCenter/Startup.cs [266:303]
public void Configure(WebApplication app, IWebHostEnvironment env)
{
// Configure the HTTP request pipeline.
if (!env.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
else if (Debugger.IsAttached)
{
// By default, we do not include any potential PII (personally identifiable information) in our exceptions in order to be in compliance with GDPR.
// https://aka.ms/IdentityModel/PII
IdentityModelEventSource.ShowPII = true;
}
// this sample uses AFD for the URL registered with Microsoft Entra ID to make it easier to get started
// but we recommend host name preservation for production scenarios
// https://learn.microsoft.com/en-us/azure/architecture/best-practices/host-name-preservation
app.UseForwardedHeaders();
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseSession(); // required for carts
app.MapHealthChecks("/healthz");
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.MapRazorPages();
}