Complete the JavaScript to add a custom "my-token" header to all HTMX requests:
document.body.addEventListener('htmx:configRequest', (event) => {
// Add your code here
});
See the "Using the htmx:configRequest
Event" section of these docs.
Complete the JavaScript to add a custom "my-token" header to all HTMX requests:
document.body.addEventListener('htmx:configRequest', (event) => {
// Add your code here
});
See the "Using the htmx:configRequest
Event" section of these docs.