Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
Ok, even without Incognito mode, if 3rd party cookies are blocked, it throws the error.
Copy link to clipboard
Copied
@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
Copy link to clipboard
Copied
Change embed mode to 'FULL_WINDOW' and checked this in Chrome(Version 115.0.5790.110 (Official Build) (64-bit)). Gettiig this
Copy link to clipboard
Copied
I getting this error when I try to click to open thumbnails
Copy link to clipboard
Copied
above Url I can also able access from my incognitive tab but from my angular application getting the error.
Copy link to clipboard
Copied
Ok, again though, if you can find a way for me to reproduce this, I can verify it and report it.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi @Raymond Camden , Any inputs from the team? Like.. we can handle that error
Copy link to clipboard
Copied
It's been reproduced by engineering. That's the best I got now, sorry.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Sorry, I'm not aware of a workaround.
Copy link to clipboard
Copied
@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
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
this is a huge problem. they need a fix!
Copy link to clipboard
Copied
I hear ya. I raised the ticket a few weeks ago. I'll ping the PM just to help raise the issue more.
Copy link to clipboard
Copied
@Raymond Camden Can we get ETA to resolve this Bug?