title: How to remove X-Frame-Options from the response
body: <p>I have a problem with X-Frame-Options http header. </p>
  
  <p>I use MVC 5, so SAMEORIGIN option is automatically added in Headers for Http Responses.</p>
  
  <p>I still want to use default option and I don't want to use below line in  Application_Start:</p>
  
  <pre><code>AntiForgeryConfig.SuppressXFrameOptionsHeader = true;
  </code></pre>
  
  <p>I would like to remove X-Frame-Options header in some particular action on controller level with code like that:</p>
  
  <pre><code>base.HttpContext.Response.Headers.Remove("X-Frame-Options");
  </code></pre>
  
  <p>However, it doesn't work.</p>
  
  <p>Do you know how can I remove it?</p>
  
  <p>Any help will be appreciated.</p>