gpt4 book ai didi

google-chrome - Chromium 的 XSS 审计员拒绝执行脚本

转载 作者:行者123 更新时间:2023-11-28 03:02:11 25 4
gpt4 key购买 nike

这是来自 Chrome 检查器的消息:

The XSS Auditor refused to execute a script in http://localhost/Disposable Working NOTAS.php because its source code was found within the request. The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.

...我的笔记本上的本地主机上有几十个网站,我将其用于我工作流程的很大一部分,在过去的几天里,在更新的 Chrome 改变了一些东西之后,几乎所有网站的文本区域' 内容不再保存到文件中。

用于保存我所做编辑的代码全部损坏;我输入新文本,点击在保存 和我的浏览器上,而不是执行文件~在脚本中编写子程序对于我正在使用的网页,只需打开一个新的空白页面。如果我再打后面按钮,文本区域仍然显示新添加的内容,但在文件中,没有变化正在追加。

最佳答案

如果您想告诉 Chrome 禁用其 XSS 保护,您可以发送值为 0X-XSS-Protection header 。由于您似乎正在使用 PHP,因此您可以将其添加到始终在输出任何内容之前执行的位置:

header("X-XSS-Protection: 0");

关于google-chrome - Chromium 的 XSS 审计员拒绝执行脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34309237/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com