javascript-tutorial / javascript-tutorial/en.javascript.info
Exception for CORS
未关闭
还没有人认领这个 Issue。
- 主要语言
- HTML
- 星标
- 25.5k
- 派生
- 4k
- PR 合并指标
- 30 天内没有已合并 PR
描述
In your page, https://javascript.info/cross-window-communication, an important CORS exception, to me at least, is that the protocol "file:" is always considered to be cross-domain. If you are writing javascript that has to work from a "file:" url, it can't access other local files directly (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp). You have to use cross-window messaging to talk into/out-of an iframe.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 javascript.info/cross-window-communication 的跨窗口通信页面开始,查看其中关于 CORS 的讨论。添加 file: 协议例外和链接的 MDN 参考资料,并解释相关的跨窗口消息传递变通方案;当页面准确涵盖此情况时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100