cmxl / pdftron-customheader-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDFTron CustomHeader Issue

When serving PDF files with range processing enabled a HEAD request will be sent before downloading the PDF file in chunks. But when setting customHeaders, the HEAD request does not send those.

Prerequisite

Reproducing the issue

  • navigate to ./client
  • execute npm ci && npm start
  • navigate to ./server
  • execute dotnet run
  • open http://localhost:4200

=> in the devtools you'll see the HEAD request fail with status 401, due to missing headers in the request.

About


Languages

Language:TypeScript 55.4%Language:JavaScript 14.6%Language:C# 13.4%Language:HTML 9.1%Language:ASP.NET 6.1%Language:SCSS 1.3%