开发者社区> 问答> 正文

SecurityError:操作不安全-React Heroku

我正在尝试部署使用create-react-app创建的应用程序。它在本地工作正常。但是当部署在Heroku上时,会显示以下错误:

SecurityError: The operation is insecure.

我正在使用Pusher库制作反应式记事本,但是我没有看到如何在heroku上正确地对其进行部署。我已经尝试过Firefox,Chrome和Edge,但似乎无法正常工作。

它表明问题出在/ app / webpack / bootstrap中。

783 | 
 784 | // Execute the module function
> 785 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
     | ^  786 | 
 787 | // Flag the module as loaded
 788 | module.l = true;```

Any ideas on how to solve this error would be much appreciated.

展开
收起
几许相思几点泪 2019-12-10 19:46:08 704 0
0 条回答
写回答
取消 提交回答
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
搭建React Native生态 立即下载
利用编译将 Vue 组件转成 React 组件 立即下载
React Native项目实战优化之路 立即下载