htmlcsshttpgoogle-font-apicontent-security-policy

Google Fonts violates Content Security Policy


I'm trying to use Google Fonts and I've never had any problems, but now when I try to add the CSS file on my header I get this error on the console:

Refused to load the stylesheet 'http://fonts.googleapis.com/css?family=Whatever' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'".


Solution

  • There are two things to fix here: