问题
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:
Can anyone help me over it?
Thanks
EDIT
Here is the output when I try to access cookie in JS Console:
回答1:
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
来源:https://stackoverflow.com/questions/27589092/javascript-securityerror-dom-exception-18-while-accessing-cookies