I\'m not sure where I\'m suppose to put this in my Asp.net MVC website:
HttpContext.Current.Response.AppendHeader(\"P3P\", \"CP=\\\\\\\"IDC DSP COR ADM DEVi
Assuming you want this header on every response, something like this should do it
public class P3PHeaderAttribute : ActionFilterAttribute
{
public override void OnActionExecuted(ActionExecutedContext filterContext)
{
filterContext.HttpContext.Response.AppendHeader("P3P", "CP=\\\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\\\"");
}
}
then add the filter to the global collection
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new P3PHeaderAttribute());
}