当我尝试将github存储库部署到heroku时遇到了这个问题。我在活动日志中得到
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.14.1...
Using default npm version: 6.13.4
-----> Restoring cache
- node_modules
-----> Installing dependencies
Installing node modules (package.json + package-lock)
audited 449 packages in 1.905s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
-----> Build
-----> Caching build
- node_modules
-----> Pruning devDependencies
audited 449 packages in 1.791s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
-----> Build succeeded!
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 49.2M
-----> Launching...
Released v8
https://restaurant-rating-nackademin.herokuapp.com/ deployed to Heroku
,当我转到url时,它在页面上显示“内部服务器错误”,并“拒绝加载图像'http://restaurant-rating-nackademin.herokuapp.com/favicon.ico”,因为它违反了以下内容安全策略指令:“ default-src “。注意,未明确设置'img-src',因此将'default-src'用作后备。”在控制台中,我不知道该怎么办。
请帮助我
注意:我还没有导入任何img或其他任何内容