I'm using the below code in a SharePoint Online Add-in to import data from a text file to my HTML:
$.getJSON("../Content/timeszones.txt", function (data) {
$.each(data.items, function (i, item) {
$('#timezone').append(`<option value=${item.UTCDSTOffset}>${item.TZ}</option>`);
})
}, console.log("fail"));
I'm getting the error:
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). (XHR)GET -
https://mySite.sharepoint.com/sites/develop_apps/WorldClock/Content/timeszones.txt
My configuration is as follows and I've verified the file is included in the feature:
What am I missing?