Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/378.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 带导航条的OWASP CSRF保护器_Javascript_Csrf - Fatal编程技术网

Javascript 带导航条的OWASP CSRF保护器

Javascript 带导航条的OWASP CSRF保护器,javascript,csrf,Javascript,Csrf,目前我正在我的网站上实现OWASP CSRF保护器。 一切正常,但CSRF保护器似乎限制了我的导航栏。 当我单击导航栏时,没有显示任何内容。检查GoogleChrome的控制台时,我发现一个错误,它是uncaughtRangeError:超过了最大调用堆栈大小 我在谷歌上搜索了一下,试图解决这个问题,似乎在csrfprotector.js中有以下功能: HTMLFormElement.prototype.submit=HTMLFormElement.prototype.submit; HTMLF

目前我正在我的网站上实现OWASP CSRF保护器。 一切正常,但CSRF保护器似乎限制了我的导航栏。 当我单击导航栏时,没有显示任何内容。检查GoogleChrome的控制台时,我发现一个错误,它是uncaughtRangeError:超过了最大调用堆栈大小

我在谷歌上搜索了一下,试图解决这个问题,似乎在csrfprotector.js中有以下功能: HTMLFormElement.prototype.submit=HTMLFormElement.prototype.submit; HTMLFormElement.prototype.submit=函数(){

似乎this.submit_uz()似乎在重复提交,因此它崩溃了。 我试图修改库以捕获错误并使其只提交一次。 但是,似乎该功能必须提交,否则我将无法从导航栏看到该页面。 有什么解决办法吗

我已经在这个问题上纠缠了好几个小时了

谢谢你的帮助

    // check if the FORM already contains the token element
    if (!this.getElementsByClassName(CSRFP.CSRFP_TOKEN).length)
        this.appendChild(CSRFP._getInputElt());
    
    this.submit_();
};