Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
9

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

Community Beginner ,
Aug 02, 2023 Aug 02, 2023

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.

TOPICS
PDF Embed API
8.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 02, 2023 Aug 02, 2023

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2023 Aug 03, 2023

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 04, 2023 Aug 04, 2023

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 06, 2023 Aug 06, 2023

This error will comes after loading adobe embed pdf Api successfully once and then if we try to open expand panel of comments secition(annotations) or if we try to add any annotations or simply if we try to click any thing on that section we are getting this error. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 07, 2023 Aug 07, 2023

@LakshmiPrasan271162336j9x I can now confirm that if you use FULL_WINDOW, Incognito, _and_ block 3rd party cookies, I get an error. I don't see DOM Excetion errors, the error seems to have no labels, but it definitely messes up.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 07, 2023 Aug 07, 2023

Ok, even without Incognito mode, if 3rd party cookies are blocked, it throws the error. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 07, 2023 Aug 07, 2023

@Raymond Camden  On that screen, we are not able to see any lables but if we try to navigate to any other view or click on back then we could able to see the lable for that error. first view is as below and later if we navigate we can see labels other screenshots

 

LakshmiPrasan271162336j9x_0-1691470652645.pngexpand image

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 07, 2023 Aug 07, 2023

Change embed mode to 'FULL_WINDOW' and checked this in Chrome(Version 115.0.5790.110 (Official Build) (64-bit)). Gettiig this

Afzal31474346qmde_0-1691400342386.pngexpand image

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 07, 2023 Aug 07, 2023

I getting this error when I try to click to open thumbnails

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 03, 2023 Aug 03, 2023

above Url I can also able access from my incognitive tab but from my angular application getting the error.comparisionpic.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 04, 2023 Aug 04, 2023

Ok, again though, if you can find a way for me to reproduce this, I can verify it and report it. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 06, 2023 Aug 06, 2023

Hi Raymond, I've started a new vue3 project based on your blog post. It opens a pdf for 2 seconds, then the component disappears, throwing the same exception, 401 for a jwt, and logs saying it's dismounting the component. It seems to me that the domain limit on the API key actually checks it even for localhost. Why?

 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 07, 2023 Aug 07, 2023

@Marko5E8A Yes, we check localhost. I agree we shouldn't, but we do. You either need a key for localhost and one for production, _or_ make a key for foo.com, and locally use dev.foo.com with a HOSTS file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 07, 2023 Aug 07, 2023

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 20, 2023 Aug 20, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 21, 2023 Aug 21, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2023 Sep 25, 2023

i think i have the same problem. Only with edge because this option is enable  

 

any tip to make this api work with this option enable?

 

Capture d’écran, le 2023-09-25 à 15.15.58.pngexpand image

 

Capture d’écran, le 2023-09-25 à 15.17.36.pngexpand image

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 25, 2023 Sep 25, 2023

Sorry, I'm not aware of a workaround. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2023 Sep 26, 2023

@Raymond Camden i foudn out that the any block trackers like the one from edge pr an ad blocker is the problem. 
if you disable this everything goes as normal 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2023 Sep 26, 2023

@Raymond Camden I have the same problem. Only on edge browser, chrome browser it's fine.

 

Jayachandran30329856dq0m_0-1695724723537.pngexpand image

Jayachandran30329856dq0m_1-1695724756805.pngexpand image

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2023 Sep 26, 2023

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?

MalarMannan_0-1695739415711.pngexpand image

 

 

MalarMannan_1-1695739769059.pngexpand image

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2023 Sep 26, 2023

this is a huge problem. they need a fix! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 26, 2023 Sep 26, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2023 Sep 26, 2023

@Raymond Camden  Can we get ETA to resolve this Bug?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources