【发布时间】:2020-04-19 02:32:18
【问题描述】:
运行我的 React 应用程序时,我在 chrome 中收到以下内容安全策略错误。我尝试在谷歌上搜索了很长时间,但在使用 create-react-app 时找不到有关如何解决此问题的足够信息。非常感谢任何帮助。
【问题讨论】:
-
我的代码到底是哪一部分?我使用 create-react-app 生成了应用程序,并且没有触及公用文件夹(index.html 等)中的任何内容 - 我只修改了 src 文件夹。
标签: reactjs google-chrome create-react-app favicon content-security-policy