微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

React Map GL 在沙箱中运行时缓存错误

如何解决React Map GL 在沙箱中运行时缓存错误

我正在尝试在沙箱环境中运行以下内容,但一直遇到以下错误

`Uncaught DOMException: Failed to read the 'caches' property from 'Window': Cache storage is disabled 
because the context is sandBoxed and lacks the 'allow-same-origin' flag.
at dt (<anonymous>:566:12382)
at <anonymous>:566:14870
at <anonymous>:566:15177
at wt (<anonymous>:566:15230)
at kt (<anonymous>:566:16193)
at Object.getSession (<anonymous>:566:11811)
at Object.processRequests (<anonymous>:566:12233)
at Object.queueRequest (<anonymous>:566:9815)
at Object.getSessionAPI (<anonymous>:566:12004)
at Map._authenticate (<anonymous>:570:376250)`

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。