mirror of
https://github.com/symfony/recipes.git
synced 2026-09-19 19:16:25 +03:00
Update Flex endpoint
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
"",
|
||||
" if (!csrfCookie && nameCheck.test(csrfToken)) {",
|
||||
" csrfField.setAttribute('data-csrf-protection-cookie-value', csrfCookie = csrfToken);",
|
||||
" csrfField.value = csrfToken = btoa(String.fromCharCode.apply(null, (window.crypto || window.msCrypto).getRandomValues(new Uint8Array(18))));",
|
||||
" csrfField.defaultValue = csrfToken = btoa(String.fromCharCode.apply(null, (window.crypto || window.msCrypto).getRandomValues(new Uint8Array(18))));",
|
||||
" }",
|
||||
"",
|
||||
" if (csrfCookie && tokenCheck.test(csrfToken)) {",
|
||||
@@ -151,7 +151,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "41c4285a926752ec2852a5cafa39e7b527c33a38"
|
||||
"ref": "88bb6c47954903619ed36b2b3605909558dda424"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user