Home › forums › Using CanvasJS › java.io.IOException: Server returned HTTP response code: 403 for URL …
Tagged: JSP chart
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 3 months, 1 week ago.
I have tried the code from this link: https://canvasjs.com/jsp-charts/chart-from-csv-data/
But. got an error:
java.io.IOException: Server returned HTTP response code: 403 for URL: https://canvasjs.com/data/gallery/spring-mvc/population-of-island-countries.csv
Any Idea how to solved it?
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.
You must be logged in to reply to this topic.