Browse Source

漏洞修复

zjs 3 weeks ago
parent
commit
315ff3cb75

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

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