douyuanqia665858 2019-04-13 17:12
浏览 92

无法使用get_headers查找内容安全策略

I am building a tool (in PHP) that checks the Content Security Policy on a site, seemed to work fine until I checked this URL:-

https://blog.securityevaluators.com/websockets-not-bound-by-cors-does-this-mean-2e7819374acc

For some reason get_headers() does not return the content-security-policy on this site, but it does show in google chrome developer tools.

I have checked the source code and it isn't being set by a meta tag as far as I can tell?

I also tried getting the headers by using Curl and setting a user agent but that also doesn't seem to be the issue.

Is there a request header I might need depending on their setup?

A bit confused so hoping someone can point me in the right direction!

Thanks in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?
    • ¥20 java项目连接sqlserver时报ssl相关错误
    • ¥15 一道python难题3
    • ¥15 牛顿斯科特系数表表示