• Resolved codings

    (@codings)


    Thank you for this excellent plugin!

    Recently found that with a pdf viewer plugin, the front-end pdfs were not being displayed in their iframes after toggling some WP Security features.

    After finding this post, I found that turning off “Deny bad query strings” made the iframes work again.

    Hope this helps others.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @codings.

    It seems the issue is solved, I am updating this to resolved.

    Regards

    Thread Starter codings

    (@codings)

    Thank you but I’d call that more of a workaround than solved. What happens if you want “Deny bad query strings” active but are also using a plugin such as PDFjs Viewer – Embed PDFs that uses iframes to display content on the site? I’m not even sure what that has to do with bad query strings… it does use query strings, but not bad ones ??

    Here is the query string:

    URL/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/viewer.php?file=https://site.com/wp-content/uploads/2024/03/FILE.pdf&attachment_id=1546745&dButton=false&pButton=true&oButton=false&sButton=true#zoom=auto&pagemode=none&_wpnonce=a45645
    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @codings,

    Ok, We will try check in more detail and get back to you.

    It seems the query string have https used which seems an issue as per bad query sting rule, I think instaed the file = whole url. passin only also can work.

    ?file=https://

    Regards

    Thread Starter codings

    (@codings)

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘iframe being blocked’ is closed to new replies.