Gustavo Siqueira Gustavo Siqueira - 11 months ago 90
Javascript Question

"[Report Only] Refused to load the font..." error message on console

More specifically:

[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'".

this is my
object at

contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' 'unsafe-eval'",
'connect-src': "'self'",
'img-src': "'self'",
'style-src': "'self' 'unsafe-inline'",
'frame-src': "",
'report-uri': "http://localhost:4200"

Is there anything wrong?

Answer Source

Add 'font-src': "data:", to whitelist the font being loaded.