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
{
matches: ["<all_urls>"],
css: ["font.css"],
run_at: "document_start"
}
{
matches: ["<all_urls>"],
css: ["font.css"],
run_at: "document_start"
}
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
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server