Rotativa icon indicating copy to clipboard operation
Rotativa copied to clipboard

Rotativa.MVC.ActionAsPdf won't pass cookies

Open pj6 opened this issue 9 years ago • 1 comments

I can't pass cookies other than __RequestVerificationToken into the cookie collection - they're mysteriously treated as URLs:

Error: Failed loading page http://spoof-group (sometimes it will work just to ignore this error with --load-error-handling ignore) QFont::setPixelSize: Pixel size <= 0 (0) Exit with code 1 due to network error: HostNotFoundError

Adding "--load-error-handling ignore" as a custom switch doesn't fix the issue.

pj6 avatar Jul 30 '16 14:07 pj6

I use var view = new ViewAsPdf(); view.Cookies = Request.Cookies.AllKeys.ToDictionary(k => k, k => Request.Cookies[k].Value);

martic avatar Nov 02 '16 07:11 martic