title: How to Add Spring Security HTTP Response Headers
body: <p>Starting with <strong>Spring 3.2</strong> I can simply add this to my security xml:</p>
  
  <pre><code> &lt;security:headers&gt;
      &lt;security:frame-options
              policy="SAMEORIGIN" /&gt;
  &lt;/security:headers&gt;
  </code></pre>
  
  <p>But this is not supported in <strong>Spring version 3.1</strong>, any workaround for this without having to upgrade the version?  </p>
  
  <p>This is documentation for version 3.1:</p>
  
  <p><a href="http://docs.spring.io/spring-security/site/docs/3.1.3.RELEASE/reference/springsecurity.html" rel="nofollow noreferrer">http://docs.spring.io/spring-security/site/docs/3.1.3.RELEASE/reference/springsecurity.html</a></p>