# Network error while fetching

**URL:** <https://pdfjs.community/t/network-error-while-fetching/1442>\
**Category:** Technical Support\
**Created:** [March 4, 2022, 1:20pm UTC](https://pdfjs.community/t/network-error-while-fetching/1442 "2022-03-04T13:20:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian.ancavil](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sebastian.ancavil](https://pdfjs.community/u/sebastian.ancavil)\
**Post date:** [March 4, 2022, 1:20pm UTC](https://pdfjs.community/t/network-error-while-fetching/1442/1 "2022-03-04T13:20:55Z")

</div>

**Which product are you using?**

**PDF.js Express Version**

Hi everyone! I’m trying to fetch a remote resource pdf (the cors in the server is set), but it shows me the following error.

 ![networkError](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/bed16647f6c8df267392cbc218543f4b13995bde.png)

but when i open it in an iframe no error ocurred

 ![iframeNoProblem](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/7f2e842e085ca7bf74dceea6da6ac493d0bb76f1.png)

Should I make any additional configuration??  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [March 4, 2022, 1:21pm UTC](https://pdfjs.community/t/network-error-while-fetching/1442/3 "2022-03-04T13:21:02Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Config files](https://pdfjs.express/documentation/learn-more/advanced/config-files.8)
- [How to customize viewer - What option should I choose - Config file](https://pdfjs.express/documentation/ui-customization/customizing-setup.8#config-file)
- [What is PDF.js Express?](https://pdfjs.express/documentation/learn-more/inside-express-viewer.8)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core - setPDFResourcePath(resourcePath)](https://pdfjs.express/api/Core.html#.setPDFResourcePath__anchor)
- [Core.Annotations.Forms.FieldManager - setPrintHandler()](https://pdfjs.express/api/Core.Annotations.Forms.FieldManager.html#setPrintHandler__anchor)

Forums:
- [The promise from WebViewer function is rejected](https://pdfjs.community/t/the-promise-from-webviewer-function-is-rejected/1308/1)
- [Cannot generate key for .gov.mv domains](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399/1)
- [Blank Screen in some PDF Documents](https://pdfjs.community/t/blank-screen-in-some-pdf-documents/1439/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [March 11, 2022, 3:32pm UTC](https://pdfjs.community/t/network-error-while-fetching/1442/4 "2022-03-11T15:32:59Z")

</div>

Hey there, sorry for the late reply.

Can you please send a screenshot of the request and response headers on the request to the PDF?

Thanks!  
Logan
