Get Free Trial

Load Remote Report

Ranjith asked on March 4, 2021

We are having json stored in network path where our webserver have access to When i tried to open a remote report from my app uisng Load API its not working 
Ex) //…./…// (Thiis is out network path)
Using Below code 
flesmonster.load(//…./…// ) // not working I checked cross origin and enabled it but doesnt seems to be working.

3 answers

Ian Sadovy Ian Sadovy Flexmonster March 5, 2021

Hello Ranjith,
Thank you for the question.
Here are our recommendations:

  1. Use the full absolute path to the report file (e.g.
  2. Check that the report URL is accessible from the browser. You should see the JSON content of the report (same as with the above report.json).
  3. Verify the browser console for the errors.

In the case of further issues, please provide more details (console logs, error messages, screenshots, etc.).
Look forward to hearing from you.

Ranjith March 5, 2021

This is a sahred path on a different server we may not have a absolute path Our webserver SVC account having access to write the file on this location and writing workd as expectd while trying to read the file and loas the report am getting error
Our Organisation holds a valid Flexmonster license with premium support
The error I see in console says as below
Not allowed to load local resource

Ian Sadovy Ian Sadovy Flexmonster March 5, 2021

Thank you for the details.
Please note, that the browser allows JavaScript to load files only over http:// and https://.
The error “Not allowed to load local resource” appears when you try to access files from the local file system (e.g. file://). In other words, that is the browser/JavaScript limitation.
So, report files should be served over HTTP/HTTPS by the webserver to be able to load them via load() method.
Another option is to use open() method and select the file from the file system manually.
Hope it helps.

Please login or Register to Submit Answer