描述
Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages. The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page inside a frame or iframe. Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.
解决方案
nginx
在http、server、location下添加 add_header X-Frame-Options SAMEORIGIN;
例如:
server{
add_header X-Frame-Options SAMEORIGIN always;
}
or
http{
add_header X-Frame-Options SAMEORIGIN always;
}
其他
此方案会顺带解决 Cross-Frame Scripting 的漏洞
参考:https://www.cnblogs.com/lianzhilei/p/6429514.html
---------------------
作者:SangBigYe
来源:CSDN
原文:https://blog.csdn.net/CutelittleBo/article/details/122722044
版权声明:本文为作者原创文章,转载请附上博文链接!
内容解析By:CSDN,CNBLOG博客文章一键转载插件