@sepetar,
For security reasons, browsers restrict cross-origin requests. Please refer to this StackOverflow post for more information. Serving CSV file from a local web server and making an AJAX call to it or serving it from CORS enabled CSV hosting should work fine in this case.
Also, it’s not possible to load CSV data from the local machine unless it’s served from a local web server or from the same domain where HTML is hosted. It’s basically a browser restriction for security reasons. Please refer to the above link for more info on Cross-Origin Requests.
—
Shashi Ranjan
Team CanvasJS