case 4398

This commit is contained in:
2023-01-26 00:21:17 +00:00
parent 162d6281fa
commit 198bc8f249
6 changed files with 75 additions and 0 deletions

View File

@@ -358,6 +358,11 @@ namespace AyaNova.Biz
var log = AyaNova.Util.ApplicationLogging.CreateLogger("ReportBiz::RequestRenderReport");
log.LogDebug($"report id {reportRequest.ReportId}, timeout @ {renderTimeOutExpiry.ToString()}");
//Is reporting api url overridden in CORS issue scenario (case 4398)
if (!string.IsNullOrWhiteSpace(ServerBootConfig.AYANOVA_REPORT_RENDER_API_URL_OVERRIDE))
{
apiUrl = $"{ServerBootConfig.AYANOVA_REPORT_RENDER_API_URL_OVERRIDE.TrimEnd().TrimEnd('/')}/api/{AyaNovaVersion.CurrentApiVersion}/";
}
//Customer User Report?
bool RequestIsCustomerWorkOrderReport = false;