Edit: The AJAX call is done via com_ajax:
...
async loadData() {
let requestString = this.prepareRequest();
const res = await fetch(requestString);
if (res.ok) {
let parsed = await res.json();
if (parsed.data && parsed.data.length > 0) {
this.data = parsed.data;
}
}
return this.data;
}
prepareRequest() {
if (!this.checkConfiguration()) return;
let requestString = 'index.php?option=com_ajax&module=' + this.moduleName + '&method=' + this.method + '&format=json';
if (this.backendModule) {
requestString = 'administrator/' + requestString;
}
requestString += '&limit=' + this.limit + '&page=' + this.page;
return requestString;
}
checkConfiguration() {
return !!(this.moduleName && this.method);
}
...