gpt4 book ai didi

javascript - 控制台上出现 "[Report Only] Refused to load the font..."错误消息

转载 作者:行者123 更新时间:2023-12-03 03:45:20 24 4
gpt4 key购买 nike

更具体地说:

[Report Only] Refused to load the font 'data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABBQAAoAAAAAG…H8zVsjnmMx0GcZ2HGViNOySWEa9fvEQtW43Nm+EOO0ZIpdLbMXoVzPJkcfHT6U+gLEpz/MAAAA' because it violates the following Content Security Policy directive: "font-src 'self'".

这是我位于 environment.jscontentSecurityPolicy 对象:

contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' 'unsafe-eval' connect.facebook.net",
'connect-src': "'self'",
'img-src': "'self' www.facebook.com",
'style-src': "'self' 'unsafe-inline'",
'frame-src': "s-static.ak.facebook.com static.ak.facebook.com www.facebook.com",
'report-uri': "http://localhost:4200"
},

有什么问题吗?

最佳答案

添加 'font-src': "data:", 将正在加载的字体列入白名单。

关于javascript - 控制台上出现 "[Report Only] Refused to load the font..."错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26572418/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com