Javascript SecurityError: DOM Exception 18 while accessing cookies

女生的网名这么多〃 提交于 2019-12-11 10:45:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!