Search code examples
c#asp.net-mvc-4model-view-controllerrotativa

The required anti-forgery cookie "__RequestVerificationToken_L0RDTUxpdmU1" is not present.


i am trying to produce a PDF using Rotativa MVC

when running it on IE i get

The required anti-forgery cookie "__RequestVerificationToken_L0RDTUxpdmU1" is not present.

all other browsers work

this is the link http://dcm.gp.dev.betterbrandagency.com/cash-management-for-your-clients/about-cash-management-for-your-clients/request-illustration/

put 100000 in "No Notice"

    [HttpPost]
    [ValidateAntiForgeryToken]
    public ActionResult llustration(DCMIllustration oDCMi)
    {

        return new ViewAsPdf("Downloadllustration", oDCMi) { FileName = "DCM_Illustration.pdf" };
    }

Downloadllustration is just a display view

i am puzzled


Solution

  • added

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

    and worked