반응형

Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.

 

현재 크롬 쿠키 설정이 쿠키차단이라 그런지

도메인으로 접속하면 localstorage 기능이 차단되어 에러가 발생하는 문제가 생겼다

 

 

모바일 사파리에서는 자동으로 쿠키를 허용해줘서 그런지 이러한 문제가 발생하지않았고,

데스크탑 크롬으로 접속 시, 도메인이 아닌 아이피로 접속한 경우에도 문제는 없었다

 

 

이런 경우, 코드에서의 수정이 아니라

쿠키차단이 되어있어서 자바스크립트에서 사용한 스토리지 API기능을 블락 당한것이므로

크롬 설정에서 바꾸어주고 테스트를 진행하면 된다

 

 

 

크롬 설정 > 개인정보 및 보안 > 쿠키 및 기타 사이트 데이터 > 모든쿠키허용 하면 해결됨

 

 

 

 

 

 

 

 

 

참고 : 

https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document

 

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. - The Chro

Home of the Chromium Open Source Project

www.chromium.org

 

반응형

+ Recent posts