Skip to content

Commit

Permalink
TRUNK-6283 - Fix the Invalid or Missing CSRF Token in the Legacy UI
Browse files Browse the repository at this point in the history
(cherry picked from commit adcb16a)
  • Loading branch information
dkayiwa committed Nov 1, 2024
1 parent 3a6ff6c commit 613ea56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/main/webapp/WEB-INF/csrfguard.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ if (owaspCSRFGuardScriptHasLoaded !== true) {
hidden.setAttribute('name', tokenName);
hidden.setAttribute('value', value);

form.appendChild(hidden);
form.insertBefore(hidden, form.firstChild);
//console.debug('Hidden input element [', hidden, '] was added to the form: ', form);
} else {
hiddenTokenFields.forEach(function (i) {
Expand Down

0 comments on commit 613ea56

Please sign in to comment.