Javascript SecurityError: DOM Exception 18 while accessing cookies

1.2k views Asked by At

Folks, I am working on WebOS Application for LGTV. In previous version my code was working fine while accessing cookie, but with updated WebOS it is giving me error as following:

enter image description here

Can anyone help me over it?

Thanks

EDIT

Here is the output when I try to access cookie in JS Console: enter image description here

1

There are 1 answers

1
Pre101 On

I see you are loading the app via file:// for testing. Cookies don't work for file:// urls. See this StackOverflow answer: Uncaught Error: SECURITY_ERR: DOM Exception 18 when I try to set a cookie