P3P Header Info in MVC

Ich bin mir nicht sicher, wo ich bin, angenommen, um es in meine Asp.net MVC-website:

HttpContext.Current.Response.AppendHeader("P3P", "CP=\\\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\\\"");

Ich es in der:

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 }
  );

}

Aber ich bekomme wieder

Antwort ist nicht verfügbar in diesem Kontext.

Wer weiß, wo ich bin wohl zu stellen??

InformationsquelleAutor ErocM | 2012-12-20
Schreibe einen Kommentar