Have a few embed base64 fonts in some css files, but CSP blocks these:
something like url("data:font/woff;base64,d09GRk9UVE...);
Current CSP = "base-uri 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; frame-src 'self'; img-src 'self'; script-src 'self'; style-src 'self';"
W3 and MDN say I could add a hash, but this doesn't seem to work either
tried sha256
,sha384
,sha512
Add data:
to font-source, e.g.
font-src 'self' data:;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With