files/en-us/web/http/reference/headers/content-security-policy/font-src/index.md
The HTTP {{HTTPHeader("Content-Security-Policy")}} (CSP)
font-src directive specifies
valid sources for fonts loaded using {{cssxref("@font-face")}}.
Content-Security-Policy: font-src 'none';
Content-Security-Policy: font-src <source-expression-list>;
This directive may have one of the following values:
'none'
<source-expression-list>
Given this CSP header:
Content-Security-Policy: font-src https://example.com/
The following font resource loading is blocked and won't load:
<style>
@font-face {
font-family: "MyFont";
src: url("https://not-example.com/font");
}
body {
font-family: "MyFont";
}
</style>
{{Specifications}}
{{Compat}}