Cleanup & Bug Fixes

- WebAssembly fix (missing app.Run)
 - API comms cleanup
This commit is contained in:
daniel-c-harvey
2025-09-08 09:53:13 -04:00
parent 4f7b37813a
commit c6f4ffc1fe
13 changed files with 75 additions and 32 deletions
-9
View File
@@ -55,15 +55,6 @@ if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
}
else
{
// Only use HTTPS redirection if not behind a reverse proxy
var forwardedProto = app.Services.GetService<IConfiguration>()?["ForwardedHeaders:DisableHttpsRedirection"];
if (string.IsNullOrEmpty(forwardedProto) || !bool.Parse(forwardedProto))
{
app.UseHttpsRedirection();
}
}
app.UseCors("ContentApiPolicy");
app.UseApiKeyAuthentication(apiKeySettings.ApiKey);