Download Free Trial

how to disable query string added to csv file name

        While loading report I would like to read local csv file using file system. I changed file name in report xml to point to csv file on local machine e.g. file:///home/bhagvan/treeni/gitroot/data-integration/public/csv/analytic.csv
Flexmonster script adds query string at the end to avoid caching but that leads to a problem that CSV not found.
Unable to open file file:///home/bhagvan/treeni/gitroot/data-integration/public/csv/analytic1.csv?408919003.
It seems that this file doesn’t exist or ‘Access-Control-Allow-Origin’ header is absent in the resource requested.
Is there a way to avoid adding query string parameter?
I get the same error even when I put url for csv file e.g.

3 answers

Dmytro Zvazhii Flexmonster August 25, 2016

Hi Bhagvan,
Thank you for your question. Unfortunately, we don’t support this type of path “file:///…”. We can suggest you using the local server(Node.js, Apache…) for loading your data files. The idea is to have the pass to your file smth like that: http://localhost:51495/…/data.csv Let us know if it works for you.
Best regards,

Bhagvan Chougule August 25, 2016

Hi Dmytro,
           I tried this as well but no luck. I hosted my xml and csv on webserver but flexmonster component still giving same error.
Infact I tried this on demo on your website. Opened xml using open => remote report option. Entered xml url and getting this error,
Unable to open file

It seems that this file doesn’t exist or ‘Access-Control-Allow-Origin’ header is absent in the resource requested.
Whereas I can browse the xml as well as csv file through browser. Could you please guide what could be the problem?

Iryna Kulchytska Flexmonster August 26, 2016

Hi Bhagvan,
Please note that if Flexmonster component is located in a different domain than, you will need to enable CORS to load the report XML files and CSV data files. The error message means that the browser requires more privileges to load the file. By default, cross-domain data loading is forbidden. Please look at this website that will help you to resolve the issue.
Kind regards,

Please login or Register to Submit Answer