Closed chathurvedijarugu closed 1 year ago
Can you pass the actual URL you're trying to use?
@wojtekmaj here is one URL i tried https://www.africau.edu/images/default/sample.pdf
how can i fetch pdf data and pass?
please provide code snippet I am not getting where am I stucked
That test page is not really intended for the public, but since you're playing with it, you must learn about CORS policy and how browsers handle cross origin requests. More on that on Google, but basically, you can't just request any data from any server and expect it to work. The server needs to be configured to allow, via special HTTP headers, certain origins to request data from itself.
It's giving Cors error on every PDF.
@wojtekmaj Hello, we are using React + Laravel, and we have resolved the Cors error in whole projects. However, when we use an iframe or embed HTML tag, the PDF still appears. Why is this happening? We need to use this package.
Before you start - checklist
Description
when i am passing the browser url of pdf file then that pdf is nor rendering,then i checked with online demo "https://projects.wojtekmaj.pl/react-pdf/test/" but even that demo cant render that pdf file
Steps to reproduce
see error
Expected behavior
Actual behavior
Additional information
No response
Environment