Page 1 of 1

Getting CORS issue when loading report

Posted: Fri Jan 13, 2023 4:48 pm
by pcnair
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

Re: Getting CORS issue when loading report

Posted: Fri Jan 13, 2023 10:47 pm
by Lech Kulikowski
Hello,

Please check the following article:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Thank you.