# Any way to prevent WebViewer from doing HEAD request?

**URL:** <https://pdfjs.community/t/any-way-to-prevent-webviewer-from-doing-head-request/1147>\
**Category:** Technical Support\
**Created:** [November 3, 2021, 9:29pm UTC](https://pdfjs.community/t/any-way-to-prevent-webviewer-from-doing-head-request/1147 "2021-11-03T21:29:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![yrashk](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/yrashk/32/598_2.png) [@yrashk](https://pdfjs.community/u/yrashk)\
**Post date:** [November 3, 2021, 9:29pm UTC](https://pdfjs.community/t/any-way-to-prevent-webviewer-from-doing-head-request/1147/1 "2021-11-03T21:29:06Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**

‘8.1.0’

**Detailed description of issue**

When loading document, the viewer tries to HEAD . This is problematic as URLs I give to it are pre-signed S3 URLs and they are _not_ authorizing for HEAD, just GET. Ultimately, WebViewer still works, but creates an exception in console, which might also lead to a minor slowdown.

**Expected behaviour**  
Have an option to disable HEAD

**Does your issue happen with every document, or just one?**

Every document

---

_[View the full topic](https://pdfjs.community/t/any-way-to-prevent-webviewer-from-doing-head-request/1147)._
