I use PHP CAKE 5, and vanilla js, ajax loading example:
try {
const response = await fetch(url, {
headers: { 'X-Requested-With': 'XMLHttpRequest' },
credentials: 'same-origin'
});
if (!response.ok) throw new Error('Error: ' + response.status);
const html = await response.text();
content.innerHTML = html;
} catch (e) {
content.innerHTML = `<p class="text-red-600">${e.message}</p>`;
}
The request is AJAX, but the debug kit doesn’t show anything (history XHR), why?