branch.io - 访问分支 API 时的跨域读取阻塞 (CORB)
问题描述
实施 Branch 时收到以下错误
Cross-Origin Read Blocking (CORB) blocked cross-origin response
https://branch.io/ with MIME type text/html. See
https://www.chromestatus.com/feature/5629709824032768 for more details.
有解决方法吗?
解决方案
看起来这是由于违反内容安全策略引起的。请尝试传递一个 nonce 值来防止这种情况。
branch.init(YOUR_BRANCH_KEY, {'nonce': 'GENERATED_NONCE_VALUE' });
推荐阅读
- c - Write() 函数理解十六进制值
- emacs - 导出到 Latex 时在 org-mode 脚注中包含引号
- stripe-payments - 如何在条带 CLI 中传递 --headers?
- sql - 动态枢轴排序
- python - 在 macOS Catalina 上使用“使用进程 ID 附加”在 VSCodium 中调试 Python 超时
- excel - 使用 MacOs Excel (ODBC) 中的参数查询 SnowFlake?
- oracle - Oracle SQL:遇到符号“BEGIN”
- javascript - 使用 intersectionObserver 检查元素是否可见
- pyspark - 如果不存在,将列添加到 pyspark 数据框
- python - 为什么当我在 tkinter 窗口内绘制 3d 图形时,它不允许我旋转图形或缩放