I have created a JavaScript widget. I have used localstorage for setting and getting properties of the window.
When I open that widget in Chrome it throws an error:
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
If I allow third party cookies in the browser it's working properly. The problem is that I cannot allow third parties cookies of every user manually. What is a solution to this?