I'm trying to read in a simple text data file for a game. The file is in the same directory as the html and script files.
After a bit of research, I came to the conclusion that I have to use Fetch, which seemed weird for a local file, but I went ahead and tried it out, only to run into an error and then find out that apparently as of last year? fetching local files is no longer allowed due to some kind of security issue.
Using local files is evidently still possible in some capacity, as I can still use local image and sound files, and there's also the simple act of loading the javascript files themselves.
So what's the best way to go about doing this?