Font Content Security Policy directive with Forge Custom UI

I am developing a plugin by Forge ( Custom UI)
I import the third library UI.
I see the error belows:

hasRelativeStackingContext.js:22 Refused to load the font 'data:font/ttf;base64,AA*************
because it violates the following Content Security Policy directive: "font-src 'self'".

I add the meta tag in a header in the file “index.html” but it still not working.

<meta http-equiv="Content-Security-Policy" content="font-src 'self' data:; img-src 'self' data:; default-src 'self'">


You may want to take a look at this page:

You could try adding permissions content policy that way.

Kind regards

Hi @linklefebvre
I checked but it only for css and script. It dont have permission for font.

Hi @MARINAHDAVILA how do you fix the font-src issue? I got the same issue today.


how did you fix the font-src issue?

not yet. limited document or guide to direct me, so I gave it up.