What is the proper Page Rule or Firewall Rule that should be configured for the PDF files stores inside /wp-content/uploads ?
I found the Google Drive Viewer doesn’t got the file data properly. Nothing could be shown on WordPress embedded Document Viewer or open the document URL with Google Doc Web Site.
It could also be a display issue. In addition to checking the firewall log, you might take a look at your browser’s Dev Tools (F12 in Chrome) for Network or Console errors.
May I ask you to check if your Web browser might be configured to “view” or rather “download” PDF files? - the “default action” for the PDF file extension.
My Firefox is configured to trigger download for each .pdf file extension.
Therefore, on one particular Website using “Embed any document” plugin for WordPress, I only see the “blank white space” - because PDFs cannot be viewed, only downloaded per request (set by the default action).
UPDATE: Okay, now I checked and I do see it somehow.
The URL in <iframe> is like: //docs.google.com/viewer?url=https%3A%2F%2Fdomain.hr%2Fwp-content%2Fuploads%2F2021%2F11%2Ffile-name.pdf&embedded=true&hl=en
Thanks for replying my question. The Web Browser F12 Development Tool showing one error:
“Reason: CORS header ‘Access-Control-Allow-Origin’ missing”. I think it is the major hint about my problem. I am finding the best way to avoid this error.
Thanks for replying my question The problem is occurs on all common Web Browsers, Edge, Chrome, Chromium, Firefox, Brave, and Vivaldi. They are got the same problem.