HelloZeroNet / HelloZeroNet/ZeroNet

How to use localStorage?

未关闭
#1,399 53 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

I need to connect localStorage to remember the user's actions.
But I get an error
`Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.`
We can bypass or add **allow-same-origin**?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位与报告的 localStorage 访问相关的浏览器 sandbox 和嵌入式网站处理逻辑。复现 DOMException,然后追踪 sandbox 标志的配置方式,以及其他位置是否使用了 localStorage。完成的标准是:该问题已有一个文档化或已实现的解决方案,并且该方案保留了预期的安全边界。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend, security
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。