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.
Hello Ranjith,
Thank you for the question.
Here are our recommendations:
report.json
).In the case of further issues, please provide more details (console logs, error messages, screenshots, etc.).
Look forward to hearing from you.
Regards,
Ian
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
Ranjith,
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.
Regards,
Ian