Getting CORS issue when loading report
Posted: Fri Jan 13, 2023 4:48 pm
We have a Single SPA root app (Root App) and a microfront end application -MFE(Angular). Root App is running on port 9001 and MFE is running on port 4400.
We stored our mrt file in MFE. While loading the report file from MFE, we get a CORS issue
CORS error - localhost:4400 from origin localhost:9001.
What can we do in this case to solve this CORS issue?
Here is the code.
this.report = new Stimulsoft.Report.StiReport();
var jsonUrl = assetUrl('/stimulsoft/report-new.mrt');
this.report.loadFile(jsonUrl);
Thanks
Prem
We stored our mrt file in MFE. While loading the report file from MFE, we get a CORS issue
CORS error - localhost:4400 from origin localhost:9001.
What can we do in this case to solve this CORS issue?
Here is the code.
this.report = new Stimulsoft.Report.StiReport();
var jsonUrl = assetUrl('/stimulsoft/report-new.mrt');
this.report.loadFile(jsonUrl);
Thanks
Prem