Content Security Policy - Can I explicitly block a domain so I don't get an error for a known resource

Viewed 697

I've recently implemented a content security policy.

I'm currently loading FontAwesome via their CDN and they are attempting to inject and load this file which I don't want to allow.

Refused to load the script 'https://cdn.fontawesome.com/js/stats.js' because it violates the following Content Security Policy directive: ...

The thing is I know I don't want to allow this resource through and hence don't want it generating console errors any longer.

Is there a way to update a CSP to activley block or blacklist domains/URLS?

1 Answers
Related