@adirgapalit,
For security reasons, browsers restrict cross-origin requests. Please refer stackOverflow for more information.
Adding csv file to your project and loading it should work fine. Please download JSP Samples from our download page and checkout “Chart from CSV” example in the project.
If the issue still persist, kindly create a sample project and share it over Google-Drive or Onedrive so that we can look into the code, understand your scenario better and help you out.
—
Vishwas R
Team CanvasJS