• Hi,

    We are using the “Insert from URL” option to add documents, but these are not showing up either in preview or the published page.

    Uploading the image to the media library works, but we need to link to a URL outside of our site, where the document is being kept up to date.

    There is no error message or anything to indicate what might be causing the problem – it is just blank.

    Unfortunately, the page is behind a login on our client portal, so I can’t share a link.

    Is there anything you can suggest that might help?

    Many thanks,

    Kirsty

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Kristy, can you set up an example that isn’t behind a client portal? Also, if you are using Chrome the PDF loads using the Google Doc Viewer and sometimes this has issues that aren’t within my control.

    Does this happen when using Safari or Firefox?

    • This reply was modified 5 months, 1 week ago by Andy Fragen.
    Thread Starter KirstyP

    (@kirstyp)

    Hi Andy,

    Of course – here is a link: https://demo.taxcompliancetoolkit.com/document/eftps-your-guide-for-paying-taxes/

    I am viewing in DuckDuckGo browser, but the same thing happens in Safari and Chrome.

    Many thanks,

    Kirsty

    Plugin Author Andy Fragen

    (@afragen)

    Hey Kristy!

    I see the following in the console when I try to load that page.

    Refused to load https://download.eftps.com/EFTPS_Fact_Sheet.pdf because it does not appear in the frame-ancestors directive of the Content Security Policy.

    I believe this means there’s some policy on your server that’s preventing the PDF from actually loading.

    Andy

    Thread Starter KirstyP

    (@kirstyp)

    Hi Andy,

    Just coming back to this issue.

    I have updated our content security policy, but it doesn’t seem to have fixed the problem.

    When I view on Firefox, I have this message:

    So it looks like it might be the resource itself that is preventing it from being embedded. This was working previously.

    Is this a limitation of the embed from a url option or is there anything we can do to get round this?

    Many thanks,

    irsty

    Plugin Author Andy Fragen

    (@afragen)

    irsty, in the previous example I am able to see the document on the page. I’m currently on mobile Safari and the pdf loads in Google Doc Viewer so unfortunately it’s a bit flaky. Using a non-chrome browser will give more consistent results.

    It seems to be working for me and the content security policy change seems to have fixed it.

    Andy

    Thread Starter KirstyP

    (@kirstyp)

    Hi Andy,

    How peculiar! I didn’t change the content security policy on production (where that link is hosted) – I only changed it on my dev environment.

    I have checked in Chrome and it seems to be loading fine. I am using DuckDuckGo browser, so maybe that is the culprit!

    Many thanks,

    Kirsty

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.