瀏覽代碼

漏洞修复

zjs 3 周之前
父節點
當前提交
315ff3cb75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-common/src/main/java/com/ruoyi/common/filter/MyResponseHeaderFilter.java

+ 1 - 1
ruoyi-common/src/main/java/com/ruoyi/common/filter/MyResponseHeaderFilter.java

@@ -13,7 +13,7 @@ public class MyResponseHeaderFilter implements Filter {
13 13
     public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
14 14
             throws IOException, ServletException {
15 15
         HttpServletResponse res = (HttpServletResponse) response;
16
-        res.setHeader("X-Frame-Options", "SAMEORIGIN");
16
+        res.setHeader("X-Frame-Options", "DENY");
17 17
         chain.doFilter(request, response);
18 18
     }
19 19