Closed MattFenelon closed 8 years ago
I don't think it's the way to comment out the whole validation code.
I think the solution would be:
var HOSTED_VIEWER_ORIGINS = ['*'];
(at line 7145)
Or delete the all of the validations, but I think there's a reason why this is in here.
@senny What do you think?
@MattFenelon can't we follow the suggestion in #12 and make HOSTED_VIEWER_ORIGINS
configurable?
Closed by #20
What's... the latest on this
The viewer for PDF.js does its own cross-origin checks, refusing to load any remote PDFs, which stops the viewer loading PDFs from CDNs or remote storage locations, such as S3.