diff --git a/common/pdfjs/web/viewer.js b/common/pdfjs/web/viewer.js index 76038c2..e5eef64 100644 --- a/common/pdfjs/web/viewer.js +++ b/common/pdfjs/web/viewer.js @@ -1798,9 +1798,9 @@ let validateFileURL; protocol } = new URL(file, window.location.href); - if (origin !== viewerOrigin && protocol !== "blob:") { - throw new Error("file origin does not match viewer's"); - } + // if (origin !== viewerOrigin && protocol !== "blob:") { + // throw new Error("file origin does not match viewer's"); + // } } catch (ex) { const message = ex && ex.message; PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the PDF.").then(loadingErrorMessage => {