Context
Context. A script on the site's own pages can call /cdna-api/ with the visitor's session cookie; the browser sends it automatically, because the call is same-origin. For a signed-in visitor, the platform then requires the session's CSRF token on every POST, PUT, PATCH and DELETE, in an X-Csrf-Token header or a _csrf body field. Templates receive it as _csrfToken, and only when someone is signed in. Two limits decide whether this how-to applies at all: signed-in site members are refused on everything except the visitor routes (cart, checkout, form submission, their own profile), so in practice this is a member at checkout or a backend user running a tool on the front end; and a request carrying an Authorization header skips the check, so none of this applies to API keys.