change session storage in preNavigationHooks

Hello, I'm trying to change session storage, before navigating to a page . The hook is attached, here is the error :
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Evaluation failed: DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Evaluation failed: DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
help !
1 Reply
eastern-cyan
eastern-cyan2y ago
It's possible that the website you are crawling has implemented security measures to prevent access to the sessionStorage property from external scripts. Or can be occurring during navigation to a new page.

Did you find this page helpful?