Skip to content

Commit 1af99eb

Browse files
committed
fix: align CSP sample with resourceDomains spec
1 parent 4c51eb0 commit 1af99eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

specification/draft/apps.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,8 +1480,8 @@ const csp = resource._meta?.ui?.csp;
14801480

14811481
const cspValue = `
14821482
default-src 'none';
1483-
script-src 'self' 'unsafe-inline';
1484-
style-src 'self' 'unsafe-inline';
1483+
script-src 'self' 'unsafe-inline' ${csp?.resourceDomains?.join(' ') || ''};
1484+
style-src 'self' 'unsafe-inline' ${csp?.resourceDomains?.join(' ') || ''};
14851485
connect-src 'self' ${csp?.connectDomains?.join(' ') || ''};
14861486
img-src 'self' data: ${csp?.resourceDomains?.join(' ') || ''};
14871487
font-src 'self' ${csp?.resourceDomains?.join(' ') || ''};

0 commit comments

Comments
 (0)