|
@@ -2072,9 +2072,9 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|
|
// Removing of the following line will not guarantee that the viewer will
|
|
|
// start accepting URLs from foreign origin -- CORS headers on the remote
|
|
|
// server must be properly configured.
|
|
|
- if (fileOrigin !== viewerOrigin) {
|
|
|
- throw new Error("file origin does not match viewer's");
|
|
|
- }
|
|
|
+ // if (fileOrigin !== viewerOrigin) {
|
|
|
+ // throw new Error("file origin does not match viewer's");
|
|
|
+ // }
|
|
|
} catch (ex) {
|
|
|
PDFViewerApplication.l10n.get("loading_error").then(msg => {
|
|
|
PDFViewerApplication._documentError(msg, { message: ex?.message });
|