Open
Description
I recently ran into a version of this error (mozilla/pdf.js#7153) when trying to use this gem to display PDFs hosted in an Amazon S3 bucket. Originally thought I had a CORS issue but was able to solve it by overwriting /pdfjs_viewer/viewer.js and inserting my development and production urls into the HOSTED_VIEWER_ORIGINS
around line 7100.
Would you be open to a pull request, either to add some documentation to the README, or to make HOSTED_VIEWER_ORIGINS
dependent on an ENV variable?
Metadata
Assignees
Labels
No labels