Can DataTables directly pull a csv file from OneDrive (to be published in an html webpage)?

Can DataTables directly pull a csv file from OneDrive (to be published in an html webpage)?

dsugandidsugandi Posts: 2Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • allanallan Posts: 65,813Questions: 1Answers: 10,949 Site admin

    Can DataTables directly pull a csv file from OneDrive (to be published in an html webpage)?

    Possibly... If the CSV file can be accessed via the web (e.g. there is a share link for it), and OneDrive's CORS setup allows the file to be read, then yes it would work. However, I strongly suspect that the CORS headers will not allow that, and instead you would need to use a server-side proxy script which will read the file from one drive and then serve it to the client-side. It would of course still need the share link for the file in question.

    Allan

  • dsugandidsugandi Posts: 2Questions: 1Answers: 0

    Thanks Allan, I will try it

Sign In or Register to comment.