瀏覽代碼

SEC-2230: Update contacts sample to use <headers> with no child elements

Rob Winch 12 年之前
父節點
當前提交
0bc08f8a23
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      samples/contacts/src/main/resources/applicationContext-security.xml

+ 1 - 6
samples/contacts/src/main/resources/applicationContext-security.xml

@@ -30,12 +30,7 @@
         <http-basic/>
         <logout logout-success-url="/index.jsp"/>
         <remember-me />
-        <headers>
-            <xss-protection />
-            <frame-options policy="DENY" />
-            <content-type-options/>
-            <header name="foo" value="bar"/>
-        </headers>
+        <headers/>
         <custom-filter ref="switchUserProcessingFilter" position="SWITCH_USER_FILTER"/>
     </http>