Skip to content

Commit 969b905

Browse files
idosalCopilot
andauthored
disambiguate resource in csp sample (#257)
* disambiguate resource in csp sample Clarified comment on CSP extraction from resource metadata. * Update specification/draft/apps.mdx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent aa67754 commit 969b905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specification/draft/apps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ Hosts MUST enforce Content Security Policies based on resource metadata.
16481648
**CSP Construction from Metadata:**
16491649

16501650
```typescript
1651-
const csp = resource._meta?.ui?.csp;
1651+
const csp = resource._meta?.ui?.csp; // `resource` is extracted from the `contents` of the `resources/read` result
16521652
const permissions = resource._meta?.ui?.permissions;
16531653

16541654
const cspValue = `

0 commit comments

Comments
 (0)