Skip to content

Commit

Permalink
Merge branch 'main' into sulaiman/fer-2377-syndicate-monite-surface-a…
Browse files Browse the repository at this point in the history
…uth-scheme-in-generated-docs
  • Loading branch information
sulaiman-fern authored Aug 1, 2024
2 parents 99d91cf + f297979 commit ad98ff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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,7 +104,7 @@ const nextConfig = {
"base-uri 'self'",
"form-action 'self'",
"frame-ancestors 'none'",
"font-src 'self' data:",
`font-src ${fontSrc.join(" ")}`,
// "upgrade-insecure-requests", <-- this is ignored because Report-Only mode is enabled
];

Expand Down

0 comments on commit ad98ff3

Please sign in to comment.