# Perspective PDF Viewer frustrations

**URL:** <https://forum.inductiveautomation.com/t/perspective-pdf-viewer-frustrations/47674>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 10, 2021, 9:34pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-frustrations/47674 "2021-06-10T21:34:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reed.arvin](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@reed.arvin](https://forum.inductiveautomation.com/u/reed.arvin)\
**Post date:** [June 10, 2021, 9:34pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-frustrations/47674/1 "2021-06-10T21:34:18Z")

</div>

Hello friends,

We’re trying to use the Perspective PDF Viewer to display a PDF on a remote web site. The internal web site hosting the PDF requires authentication and, after authenticating, the session information is stored in a cookie.

It appears the JavaScript fetch being used to grab the PDFs via the PDF Viewer is not using “withCredentials: true” for the XMLHTTP request. I can see this in PerspectivePdfViewer.js:

fetch(d,h(this.\_headers,this.\_withCredentials,this.\_abortController))

Is there any way to populate the \_withCredentials variable with “true” so that cookies are sent along with the web request to load the PDF into the PDF Viewer? Per Mozilla, the " `fetch()` **won’t send cross-origin cookies** unless you set the _credentials_ [init option]."

Thanks in advance for the help.

Reed
