The meta-buy of pdf.js has been annotated with the following code:
// if (origin !== viewerOrigin && protocol !== 'blob:') {
// throw new Error('file origin does not match viewer\'s');
// }
The main reason is: the HTTPS website loads the PDF resource file address of HTTP, and the PDF resource file address of HTTPS needs to be provided.