Skip to content

Commit

Permalink
(fix): include data and urls
Browse files Browse the repository at this point in the history
  • Loading branch information
chdeskur committed Aug 1, 2024
1 parent c0c793f commit d597f02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ui/docs-bundle/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ const nextConfig = {

const styleSrc = ["'self'", "'unsafe-inline'"];

const fontSrc = ["'self'", "data:", ...DOCS_FILES_URLS];

if (cdnUri != null) {
scriptSrc.push(`${cdnUri.origin}`);
connectSrc.push(`${cdnUri.origin}`);
Expand All @@ -102,6 +104,7 @@ const nextConfig = {
"base-uri 'self'",
"form-action 'self'",
"frame-ancestors 'none'",
`font-src ${fontSrc.join(" ")}`,
// "upgrade-insecure-requests", <-- this is ignored because Report-Only mode is enabled
];

Expand Down

0 comments on commit d597f02

Please sign in to comment.