Getting CORS issue when loading report

Stimulsoft Reports.JS discussion
Post Reply
pcnair
Posts: 1
Joined: Fri Jan 13, 2023 4:29 pm

Getting CORS issue when loading report

Post 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
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Getting CORS issue when loading report

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply