拒绝加载图像'https://authorization.example.herokuapp.com/favicon.ico,因为它违反了以下内容安全策略指令

时间:2020-05-11 20:04:52

标签: javascript html node.js

这是我的index.html,我在heroku中部署了我的node.js应用程序,但它抛出了图像错误。

enter image description here

<!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/">

1 个答案:

答案 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