访问分支API时跨源读取阻止(CORB)

时间:2018-10-31 22:52:47

标签: branch.io cross-origin-read-blocking

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

是否有解决方法?

1 个答案:

答案 0 :(得分:0)

类似原因是由于违反内容安全策略所致。请尝试传递一个现时值以防止这种情况。

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