wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 557 forks source link

Unable to read online insecure PDF file #804

Closed phillipcmittmann closed 10 months ago

phillipcmittmann commented 10 months ago

What react-native version are you using? 0.73.1

What react-native-pdf version are you using? 6.7.4

What platform does your issue occur on? (android/ios/both) Both

Simulator Screenshot - iPhone 8 - 2024-01-17 at 16 39 33 Simulator Screenshot - iPhone 8 - 2024-01-17 at 16 39 36

Show us the code you are using?

<Pdf source={{ uri: http://online.osul.com.br/edicoesanteriores/20240117/jornal-o-sul.pdf }} enablePaging={true} horizontal={true} style={{ backgroundColor: 'white', flex: 2 }} fitPolicy={0} trustAllCerts={true} />

abanobmikaeel commented 10 months ago

For me adding trustAllCerts={false} fixed that error

phillipcmittmann commented 10 months ago

For me adding trustAllCerts={false} fixed that error

Adding trustAllCerts={false} didnt solved the issue.

phillipcmittmann commented 10 months ago

We added certificates for those endpoints, resolving the problem on my end.

Closing without a solution.