title: How to add X-Frame-Options to just some responses in Spring Security 3.2
body: <p>I would like to add X-Frame-Options header to all but some pages in my Spring application. Spring Security 3.2 offers nice capability to add that header to all responses via <code>&lt;headers&gt; &lt;frame-options /&gt; &lt;/headers&gt;</code> configuration.</p>
  
  <p>But could it be possible to exclude this header from some paths? I considered subclassing <code>XFrameOptionsHeaderWriter</code> and do some path regexp matching inside, but it seems a bit ugly. Maybe there is more convenient way to accomplish this?</p>