I am trying to use LoadStrings() in a p5.js and in the console, I get the error “p5.js:60518 Fetch API cannot load file:[FILENAME].txt. URL scheme must be “http” or “https” for CORS request.”
I googled it and people said that it only works on firefox but it doesn’t even work on firefox for me
here is the code in question:
var track = [];
function setup() {
loadStrings(“track.txt”, getText)
}
do you have any suggestions for how i can fix this
id rather not have to host a local server backause im actually working on a commision and it would be a bit of bother to have to get them to host a locl server aswell and set the file up.
hello man i tried the cmd workaround specified on Chrome-allow-file-access-from-file.com
it didnt work
any other suggestions, i have to get this done by wednesday and i cant work on it untuill i get this fixed