Skip to main content
Participating Frequently
Aug 2, 2023 8:54 AM UTC
Question

DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied.

Hi All,

In normal window application able to load, preview and able to add annotations to adobe pdf api embed but if I try to access in incognitive tab(In browser setting third party cookies are disabled for incognitive tab) we will get below error. if I enable All cookies in browser even in incognitive its starts getting work. How to fix this issue without enabling all cookies in browser.

"dc-core.js:2 DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document".

Please help us in solving this issue.

Thanks in advance.

This topic is closed to new replies. Start a new post to keep the conversation going.

45 replies

Participant
Oct 9, 2023 10:23 AM UTC

Hi there,

 

Just jumping on to say that we are also experiencing this DOMException with our customer-facing product on Chrome and Edge, and would really appreciate a fix. At the moment we will simply need to provide some customer service to explain how to enable third-party cookies. Definitely not ideal. What's strange is that I'm not even able to catch this error from the Promise - I assume the error is thrown somewhere else that isn't allowing me to catch it. I've tried everything I can think of, but if anyone has any ideas on how to catch this error so I can at least deliver a message on the page to the user, that would be great.

 

Has there been any progress on fixing this bug?

 

Thank you

Translate
Raymond Camden
Community Manager
Community Manager
Oct 9, 2023 1:29 PM UTC

When I have news, I'll share via a new post to the forum. 

Translate
Participant
Oct 10, 2023 4:02 PM UTC

Can you provide a link to the new post with a solution please?

Translate
Participant
Sep 29, 2023 9:10 PM UTC

We are also seeing the same issue with Edge Version 117.0.2045.43 (Official build) (64-bit), where Adobe is blocked under privacy with the error message, "Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document."

Translate
Participant
Oct 3, 2023 12:50 PM UTC

Hi all,

I had this issue and in my testing it was solved by switching from:

https://documentservices.adobe.com/view-sdk/viewer.js

to 

 
Looke like the old source isn't trusted by Edge.
 
 

 

Translate
Participant
Oct 10, 2023 4:18 PM UTC

This resolved the issue on our system, but it would be nice to get an official fix from Adobe. 

Translate
BrendanGreen
Participant
Sep 28, 2023 2:38 AM UTC

Hi,

We also had this error in our Blazor WASM application.

It got reported to me by a user yesterday, and I verified that it was in fact happening./

Looking today, the error is no longer appearing. 

Has a fix been made?

Translate
Participant
Sep 29, 2023 1:45 PM UTC

We had reports of this issue yesterday from external users.

 

This morning, the error was still present.  However, a simple hard refresh in edge and the error went away.

 

Also, the previous code generator from the viewer demo produced:

https://documentcloud.adobe.com/view-sdk/main.js

 

However, the current view demo produces:

https://documentservices.adobe.com/view-sdk/viewer.js

 

I notice both URLs in above comments about this issue.  When did this change?

 

The only differences appear to be the following:

Translate
Participant
Sep 26, 2023 2:51 PM UTC

Why Edge browser blocking Adobe domain and the PDF document showing blank. It happened suddenly past 2 days. It is loading good in basic mode. It is not loading in Balanced and strict mode. Is that adobe site vulnerable in Balanced and strict mode?

 

 

 

Translate
Ben2424
Participant
Sep 26, 2023 2:55 PM UTC

this is a huge problem. they need a fix! 

Translate
Raymond Camden
Community Manager
Community Manager
Sep 26, 2023 3:00 PM UTC

I hear ya. I raised the ticket a few weeks ago. I'll ping the PM just to help raise the issue more.

Translate
Raymond Camden
Community Manager
Community Manager
Aug 7, 2023 2:11 PM UTC

I'm a bit concerned that my error _looks_ different than yours, but the process seems to be the same. I've reported it internally.

Translate
Participating Frequently
Aug 21, 2023 5:02 AM UTC

Hi @Raymond Camden , Any inputs from the team? Like.. we can handle that error

Translate
Raymond Camden
Community Manager
Community Manager
Aug 21, 2023 3:28 PM UTC

It's been reproduced by engineering. That's the best I got now, sorry.

Translate
Raymond Camden
Community Manager
Community Manager
Aug 2, 2023 3:20 PM UTC

I tried replicating this on our playground (https://documentservices.adobe.com/view-sdk-demo/index.html#/view/FULL_WINDOW/Bodea%20Brochure.pdf), with Edge, Incognito, 3rd party cookies disabled, and can't reproduce it. Can you try the playground too?

Translate
Participant
Aug 4, 2023 2:58 AM UTC

I am too facing this issue as I was playing with embed API. When I click thumbnails, it is throwing this error and not showing any thumbnails.

 

If you use use your playground to reproduce, it won't show becuase domain of plaground and the source of iframe used to embed the document are same

Translate
Raymond Camden
Community Manager
Community Manager
Aug 4, 2023 5:42 PM UTC

I tried this CodePen, https://codepen.io/cfjedimaster/pen/xxgYoXY?editors=1111, in an Incognito browser and saw no issues. Is it _only_ if you try to add an annotation?

Translate