• giulio64

    (@giulio64)


    When passing shrtcode result message is always “NetworkError when attempting to fetch resource”.”

    However I solved it differently. The plugin is one of the best, in my opinion, in managing PDFs in WordPress

    • This topic was modified 3 weeks, 5 days ago by giulio64.
    • This topic was modified 3 weeks, 5 days ago by giulio64.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @giulio64, I’m sorry about the error message!

    This error usually occurs when the PDF you are trying to embed is hosted on a different domain or sub-domain than the site where it is being displayed. For example, if your site is hosted at https://domain.com and the PDF is from a different domain or sub-domain, such as https://site.com or https://www.domain.com, this error will be triggered.

    If you’re using an SSL certificate, ensure that both the front end and back end of your site are using the same protocol (http vs. https). Any mismatches, such as between https://www.example.com and example.com, can also cause this error.

    These issues need to be resolved at the server or WordPress installation level. For more detailed information, please refer to our article: Failed to Fetch Error / NetworkError when attempting to fetch resource.

    If your PDFs are hosted on a CDN like Amazon S3, you may need to configure CORS (Cross-Origin Resource Sharing) to meet browser security requirements. Instructions for setting this up can be found here: Hosting PDFs on Other Services.

    I hope this helps clarifies the issue. Thanks!

    Thread Starter giulio64

    (@giulio64)

    Thank you for your replay

    I had read about this potential problem and I am pretty sure the file is on the same domain. However I solved the problem differently. Your plugin is still great and I bought the pro version. (I also corrected the review… )

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