Browse Source

Introduce a way to add CSRF manually.

master
t123yh 7 years ago
parent
commit
881977e8e3
  1. 2
      static/script.js

2
static/script.js

@ -41,7 +41,7 @@ $(function () {
form.submit();
});
$('form').each(function () {
$('form').not('.have-csrf').each(function () {
this.action = addUrlParam(this.action || location.href, '_csrf', document.head.getAttribute('data-csrf-token'));
});
});

Loading…
Cancel
Save