因为它违反了以下内容安全策略指令"/>
拒绝加载图像'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,因为它违反了以下内容安全策
发布评论