Pug 图像链接无法呈现

时间:2021-01-31 00:22:00

标签: html node.js express pug jade4j

我正在尝试在 web 上其他地方托管的 pug 中渲染图像,而不是作为我项目中的静态资产。我可以很好地导航到它并在我的浏览器中拉出它,但是当我加载我的网页时,它在控制台中给了我错误

KeyError at /add_project/

我正在尝试将图像渲染为:

Refused to load the image '<URL>' because it violates the following Content Security Policy directive: "img-src 'self' data:".

0 个答案:

没有答案
相关问题