`
yidongkaifa
  • 浏览: 4064840 次
文章分类
社区版块
存档分类
最新评论

Uncaught Error: SECURITY_ERR: DOM Exception 18

 
阅读更多
用 chrome 打开测试用的 .html 发现有错误,网找答案


Question:

I get the following error in Chrome's developer tools window when I try to set a cookie usingthisjQuery plugin:

Uncaught Error: SECURITY_ERR: DOM Exception 18

What does this error mean and how can I fix it? I get the same error when I usethisjQuery plugin.


Answer:

You're most likely using this on a local file over thefile://URI scheme, which cannot have cookies set. Put it on a local server so you can usehttp://localhost.


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics