2
0
forked from Wavyzz/dolibarr

Fix warning when using MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL

This commit is contained in:
Laurent Destailleur
2023-02-06 14:13:37 +01:00
parent 090c04b904
commit 22d3d9cef5
2 changed files with 4 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ function check_events() {
var newToken = 'notrequired';
const allMeta = document.getElementsByTagName("meta");
for (let i = 0; i < allMeta.length; i++) {
if (allMeta[i].getAttribute("name") == 'anti-csrf-token') {
if (allMeta[i].getAttribute("name") == 'anti-csrf-currenttoken') {
newToken = allMeta[i].getAttribute('content');
console.log("newToken in page = "+newToken);
}