2

Am getting this error "Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document." when i enable "Block third-party cookies" from browser

Is that any other alternative solution for to store data from browser?

// To set value to localstorage
sessionStorage.setItem("contact", 'Found');
// To get value to localstorage
sessionStorage.getItem("contact");
Elangamani
  • 33
  • 1
  • 1
  • 6
  • 1
    I have checked this solution, but its not related to my problem. refer my screenshot : https://prnt.sc/oj82un – Elangamani Jul 24 '19 at 05:10
  • Note that, if you are accessing storage inside of an iframe, it is considered as "third party" – CORSAIR Aug 24 '20 at 06:31

0 Answers0