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 <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
aa6775485d
commit
969b905c10
1 changed files with 1 additions and 1 deletions
|
|
@ -1648,7 +1648,7 @@ Hosts MUST enforce Content Security Policies based on resource metadata.
|
|||
**CSP Construction from Metadata:**
|
||||
|
||||
```typescript
|
||||
const csp = resource._meta?.ui?.csp;
|
||||
const csp = resource._meta?.ui?.csp; // `resource` is extracted from the `contents` of the `resources/read` result
|
||||
const permissions = resource._meta?.ui?.permissions;
|
||||
|
||||
const cspValue = `
|
||||
|
|
|
|||
Loading…
Reference in a new issue