mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-04-05 17:37:49 +08:00
pdf.js使用里面一个bug
This commit is contained in:
parent
9a027674ac
commit
63e62ab57b
@ -1897,7 +1897,7 @@ var validateFileURL = void 0;
|
||||
}
|
||||
var fileOrigin = new URL(file, window.location.href).origin;
|
||||
if (fileOrigin !== viewerOrigin) {
|
||||
return '/getCorsFile?urlPath=' + file;
|
||||
return '/getCorsFile?urlPath=' + encodeURIComponent(file);
|
||||
}
|
||||
} catch (ex) {
|
||||
var message = ex && ex.message;
|
||||
|
Loading…
Reference in New Issue
Block a user