0

实施 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.

有解决方法吗?

4

1 回答 1

0

看起来这是由于违反内容安全策略引起的。请尝试传递一个 nonce 值来防止这种情况。

branch.init(YOUR_BRANCH_KEY, {'nonce': 'GENERATED_NONCE_VALUE' });

于 2018-11-01T14:20:47.323 回答