title: P3P Header Info in MVC
body: <p>I'm not sure where I'm suppose to put this in my Asp.net MVC website:</p>
  
  <pre><code>HttpContext.Current.Response.AppendHeader("P3P", "CP=\\\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\\\"");
  </code></pre>
  
  <p>I put it in the:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
    HttpContext.Current.Response.AppendHeader("P3P", "CP=\\\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\\\"");
    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
    routes.MapRoute(
        "Default", // Route name
        "{controller}/{action}/{id}", // URL with parameters
        new { controller = "Account", action = "Logon", id = UrlParameter.Optional }
    );
  
  }
  </code></pre>
  
  <p>But I get back </p>
  
  <blockquote>
    <p>Response is not available in this context.</p>
  </blockquote>
  
  <p>Anyone know where I am suppose to put this?</p>