Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG fonts fail with strict CPS #2295

Open
orange-buffalo opened this issue Jan 17, 2025 · 0 comments
Open

SVG fonts fail with strict CPS #2295

orange-buffalo opened this issue Jan 17, 2025 · 0 comments

Comments

@orange-buffalo
Copy link

If D2-generated SVG is rendered inside an iframe with Content Security Policy having font-src 'self', there are errors in browser console:

Refused to load the font 'data:application/font-woff;base64,...' because it violates the following Content Security Policy directive: "font-src 'self'".

Then browser falls back to the default fonts to render the diagram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant