You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add-on upgrade guide doesn't mention the __nonce form token now required on dosql, AJAX and do_* requests #464
Since #400, every dosql POST and every a=do_* / a=domodsql request must carry the session's form token as __nonce. Without it, the request is redirected with "Your form has expired or did not come from this site". w2p_add_form_tokens() adds the token to <form method="post"> automatically, but it can't add it to:
AJAX posts ($.ajax, $.post, fetch) to a dosql handler
GET links to a=do_* actions
forms built in JavaScript
The manual's Updating Add On Modules for v5.0 section (web2project/manual, manuscript/app-b-add-on-modules.txt) doesn't mention the token. The failure is silent: the AJAX call gets the whole redirect page back. In the HelpDesk add-on, the requestor lookup pasted that HTML page into the Requestor field.
Suggested fix: add a "Form tokens (CSRF)" subsection under Other changes that affect modules:
Activity
caseysoftware commentedon Nov 6, 2026
This belongs in the documentation repos, so it's moved there:
__nonceform token now required on dosql, AJAX anddo_*requests manual#4__nonceform token now required on dosql, AJAX anddo_*requests web2project.github.io#9Closing here.