Hello!
Absence of Anti-CSRF Tokens Alert when CSRFToken is in html head script before body.
ZAP doesn't detect CSRFToken. Can it be False Positive?
Code is as follows.
<script>
.....
window.addEventListener('load', function() {
// Find all form elements on the page
const forms = document.getElementsByTagName('form');
// Define the prefix to add and the path to match.
const elementName = 'CSRFToken';
const elementValue = 'gdommjf84j7amhnn';
.....
</script>
<script language="javascript">
.....
<body>
.....