Преглед на файлове

Merge remote-tracking branch 'origin/master'

csg6 преди 1 месец
родител
ревизия
056bbf1f86
променени са 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