PageSourceSearch

https://citrodigital.com/_htmx/antiforgery.js

js citrodigital.com collected 2026-10-06 13:13:38 UTC 718 bytes, 23 lines download raw bytes

1document.addEventListener("htmx:configRequest", (evt) => {
2    let httpVerb = evt.detail.verb.toUpperCase();
3    console.log(evt)
4    if (httpVerb === 'GET') return;
5
6    let antiForgery = htmx.config.antiForgery;
7
8    console.log(htmx.config.antiForgery)
9    if (antiForgery) {
10
11        // already specified on form, short circuit
12        if (evt.detail.parameters[antiForgery.formFieldName])
13            return;
14
15        if (antiForgery.headerName) {
16            evt.detail.headers[antiForgery.headerName]
17                = antiForgery.requestToken;
18        } else {
19            evt.detail.parameters[antiForgery.formFieldName]
20                = antiForgery.requestToken;
21        }
22    }
23});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.