页面中使用了 iframe 嵌入网页,当用户浏览器设置了禁用了第三方 cookie, 控制台报错如下
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
希望能够拦截到这个 DOMException 报错,给用户提示允许第三方 cookie 的加载
页面中使用了 iframe 嵌入网页,当用户浏览器设置了禁用了第三方 cookie, 控制台报错如下
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
希望能够拦截到这个 DOMException 报错,给用户提示允许第三方 cookie 的加载
13 回答12.8k 阅读
8 回答2.6k 阅读
2 回答5.1k 阅读✓ 已解决
7 回答1.9k 阅读
3 回答2.2k 阅读✓ 已解决
5 回答858 阅读
3 回答1.1k 阅读✓ 已解决