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

编程入门 行业动态 更新时间:2024-10-06 16:18:18

拒绝加载图像'https://authorization.example.herokuapp.com/favicon.ico,<a href=https://www.elefans.com/category/jswz/34/1770515.html style=因为它违反了以下内容安全策略指令"/>

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

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

<!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' 
     /">
回答如下:

尝试此元标记<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/">

更多信息Follow this

更多推荐

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

本文发布于:2024-05-13 08:39:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1759301.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:因为它   以下内容   指令   安全策略   图像

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!