Title: One of the best PDF plugin. Issue with shortcode
Last modified: October 30, 2024

---

# One of the best PDF plugin. Issue with shortcode

 *  [giulio64](https://wordpress.org/support/users/giulio64/)
 * (@giulio64)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-shortcode-9/)
 * 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 1 year, 6 months ago by [giulio64](https://wordpress.org/support/users/giulio64/).
    -  This topic was modified 1 year, 6 months ago by [giulio64](https://wordpress.org/support/users/giulio64/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * (@nasanansi)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-shortcode-9/#post-18101107)
 * Hi [@giulio64](https://wordpress.org/support/users/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](https://domain.com/) 
   and the PDF is from a different domain or sub-domain, such as [https://site.com](https://site.com/)
   or [https://www.domain.com](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 [http://www.example.com and](http://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](https://wp-pdf.com/kb/error-url-to-the-pdf-file-must-be-on-exactly-the-same-domain-as-the-current-web-page/).
 * 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](https://wp-pdf.com/kb/hosting-pdfs-on-other-services-such-as-amazon-s3/).
 * I hope this helps clarifies the issue. Thanks!
 *  Thread Starter [giulio64](https://wordpress.org/support/users/giulio64/)
 * (@giulio64)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/issue-with-shortcode-9/#post-18105863)
 * 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)

The topic ‘One of the best PDF plugin. Issue with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/pdf-embedder/assets/icon.svg?rev=3227003)
 * [PDF Embedder](https://wordpress.org/plugins/pdf-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-embedder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [giulio64](https://wordpress.org/support/users/giulio64/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/issue-with-shortcode-9/#post-18105863)