case 4398
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -83,6 +83,9 @@ namespace AyaNova.Util
|
||||
//REPORT RENDERING BROWSER PARAMS
|
||||
internal static string AYANOVA_REPORT_RENDER_BROWSER_PARAMS { get; set; }
|
||||
|
||||
//REPORT RENDERING API URL OVERRIDE
|
||||
internal static string AYANOVA_REPORT_RENDER_API_URL_OVERRIDE { get; set; }
|
||||
|
||||
|
||||
//LOGGING
|
||||
internal static string AYANOVA_LOG_PATH { get; set; }
|
||||
@@ -167,6 +170,9 @@ namespace AyaNova.Util
|
||||
|
||||
//REPORT RENDERING
|
||||
|
||||
//RENDER OVERRIDE URL FOR CORS ISSUES BEHIND IIS (case 4398)
|
||||
AYANOVA_REPORT_RENDER_API_URL_OVERRIDE = config.GetValue<string>("AYANOVA_REPORT_RENDER_API_URL_OVERRIDE");
|
||||
|
||||
//RENDER ENGINE PATH
|
||||
AYANOVA_REPORT_RENDER_BROWSER_PATH = ActualFullPath(config.GetValue<string>("AYANOVA_REPORT_RENDER_BROWSER_PATH"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user