I tried testing this package in a laravel application but I kept receiving this error in the console.
"Unexpected server response (0) while retrieving PDF "http://127.0.0.1:8000/test/src/test.pdf"."
Reproduce
Create a new laravel application, add this package into a blade and add your pdf into src/ folder in a test folder in the project root like this public/test/src Also include all neccessary files in the same test folder. My Blade looks like this
Pdf should be displayed like it did in the demo app that i was testing with.
Result
Pdf files keeps coming as a downloadable file in my browser and the error on the console is as if the plugin is expecting a particular header response type which is not properly returned.
While experimenting I wrote a service worker to help convert the request header to 'Content-Type': 'application/pdf', and return 200, and eventually the file is loaded successfully now.
I tried testing this package in a laravel application but I kept receiving this error in the console.
Reproduce
Create a new laravel application, add this package into a blade and add your pdf into src/ folder in a test folder in the project root like this
public/test/src
Also include all neccessary files in the same test folder. My Blade looks like thisExpected Result
Pdf should be displayed like it did in the demo app that i was testing with.
Result
Pdf files keeps coming as a downloadable file in my browser and the error on the console is as if the plugin is expecting a particular header response type which is not properly returned.