Importing Own CSV File
I am currently trying to load a csv file from my own computer following tutorial 8.
I have downloaded 'a.csv' from windy.com and it put it in the same folder where 'plugin.html' is located. The webpage loads fine, but when I click on the right sidebar to load the data, nothing shows up.
Any help is appreciated. I have added a picture of my code.
Check CORS on MDN. File must be hosted on some https:// server
I moved the csv to Google Drive and set the sharing settings to "accessible with link" but when I tried and load it gives me an error saying that the file must be retrieved full windy.com. What is the way around this?
I have attached a screenshot.
@ac5a The server must set CORS headers. It evidently does not.
@ivo Is there a way that I can set the CORS headers to accept the google drive link? If not, what are my other options on how to upload my own csv? Thanks
@ivo I was able to resolve this issue and upload my own files. Thank you
For future readers, you must upload your files to a server where you have the ability to set CORS headers. You cannot simply upload it to a dropbox or google drive where you do not have this control.
uizin last edited by
Hey @ac5a would you mind sharing your plugin code? I'm interested in this topic too!
Thank you so much :)