我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

html / php中的HTTP标头

I'm doing penetration testing for a project, and I'm using ZAP. It keeps telling me to set these so I do, but ZAP keeps giving me the same warnings for it.

I used this at the start of the php tag:

header('X-Content-Type-Options: nosniff');
header('X-Frame-Options=SAMEORIGIN');

and this at the start of an html file:

X-Content-Type-Options: nosniff
X-Frame-Options=SAMEORIGIN

Can anyone tell me why this isnt working? It worked fine the last time I did this.

近期文章

  • 如何修改CSS中的特定属性
  • 我可以从guzzle响应中检索cookie并将其设置为用户的浏览器吗?
  • EPP呼叫的客户证书
  • ZF2使用项目外部的模型
  • 会话存储Codeigniter中的问题
  • PHP是否写入文件
  • jQuery获取请求多语言内容
  • PHP名称空间问题与特征
  • 使用PHP在MySQL中导入.xsl和.csv文件
  • SELECT DISTINCT每个月内的计数条目。 MYSQL
  • 如何使用rocketeer部署应用程序配置文件?
  • 如何在Office 365中的父文件夹中创建子文件夹
  • 如何在laravel中编写查询以从多个表中获取结果
  • 多个包含相同类的模块
  • 在PostgreSQL中生成顺序代码的最佳实践是什么?
  • 将CakePHP会话读入Laravel并在Laravel中进行身份验证
  • 通过从NodeJS中执行PHP脚本来重新启动NodeJS
  • 如何使用代码点火器从a-z及其各自的数据进行分页
  • 从自定义帖子类型中选择多个类别以在LayersWP构建器窗口小部件中显示
  • GROUP BY查询仅显示与html表中的日期关联的一行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华