Skip to content

PDF Viewer not loading (MIME type was blocked) #3277

@jaredl2013

Description

@jaredl2013

Short Notice from the maintainer

Describe the bug/problem

The issue is when you select a book and click "read in browser" the page would be blank and not load the pdf.

To Reproduce

Steps to reproduce the behavior:

  1. Select a book from your library
  2. Select to view in browser

Expected behavior

When clicking to read in browser for the pdf to load.

I fixed my issue by editing the source page: "C:\Calibre-Web_internal\cps\templates\readpdf.html" and changing pdf.mjs, viewer.mjs and pdf.worker.mjs to pdf.js, viewer.js and pdf.worker.js. Also copying the mjs files and saving as js files.

Error in the inspect page of browser said it was the wrong mime type. It was text/plain.

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions