这是我的index.html,我在heroku中部署了我的node.js应用程序,但它抛出了图像错误。
<!DOCTYPE html>
<html lang="es">
<head>
<meta name="viewport" content="initial-scale=1.0,width=device-width,minimum-
scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Content-Security-Policy" content="img-src 'self' data:; default-src 'self'
https://ea-authorization.herokuapp.com/">
答案 0 :(得分:0)
尝试此元标记
<meta http-equiv="Content-Security-Policy" content="default-src https:">
替换
<meta http-equiv="Content-Security-Policy" content="img-src 'self' data:; default-src 'self'
https://ea-authorization.herokuapp.com/">
有关更多信息,Follow this