ngx-extended-pdf-viewer: Cant seem to feed http url into src.
Hi, this is a great extension. I could get a local file to display but when I tried to do this,
<ngx-extended-pdf-viewer [src]="http://www.childrensbooksforever.com/Childrenpics/A%20COOL%20KID%20LIKE%20ME.pdf'" useBrowserLocale="true" height="80vh"></ngx-extended-pdf-viewer>
I am met with an error below:
PDF.js v2.1.266 (build: 81f5835c)
Message: Failed to fetch
The error message is displayed inside the pdf viewer frame. And it persists for different urls. any idea what I should be doing instead?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 30 (16 by maintainers)
Commits related to this issue
- added a demo for stephanrauh/ngx-extended-pdf-viewer#98 — committed to stephanrauh/extended-pdf-viewer-showcase by stephanrauh 5 years ago
- added a demo for stephanrauh/ngx-extended-pdf-viewer#98 — committed to stephanrauh/extended-pdf-viewer-showcase by stephanrauh 5 years ago
Hi, Thank you very much for the replies. Yes, I am still trying to sort this out. Give me another week as I am currently tied up with something. I think your solution to the CORS problem will most likely help. Let you know of any updates soon!