The code looks like:
<iframe pm-attr-iframe class="widget-body" ng-src="{{vm.iframeUrl}}" sandbox="allow-same-origin allow-popups allow-forms allow-top-navigation">
(not available)
</iframe>
Click the PDF link inside the iframe, it opens with white content. If right click the mouse and click "Save", it works.
If open the URL to any tab or window, the PDF file rendered with default PDF viewer.
If I add other PDF viewer to Chrome extensions, it always works.
Is it caused by default PDF viewer of Chrome? How to avoid it?
I just found another way to fix this.
If your site needs to stick with sandbox for some reason, you can add the value allow-popups-to-escape-sandbox to fix this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With