Custom font loading in Content Script
Hello all, just starting using Plasmo and I'm loving it. I'm currently trying to make a persisten content script. My font.css I have font declarations
@font-face {...}
using a woff2 font. and in content.tsx i havethis simple config
it works well, but I've seen it run into a problem on for example github, where I get this error: refused to load the font <lots of font info> because it violates the following Content Security Policy directive: "font-src github.githubassets.com".
Anyone have a clue?0 Replies