Skip to content

Latest commit

 

History

History

04_htmx_csrf_token

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.