Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据拒绝执行 JavaScript 脚本。在 request 中找到脚本的源代码,我想将此代码与我的 Wordpress 网站的页面一起发送:
<?php header("X-XSS-Protection: 0");?>
我把它放在哪里?
你可以把它放到 wordpress docroot 中 index.php 的顶部。您需要在发送任何内容之前修改标头。
如果您使用新的 wopress 版本更新您的网站,您可能会丢失此更改。请注意。