Build the default NIP-5D CSP with validated host source-list replacements. Meta-unsupported directives must be configured on the host HTTP response.
Explicit connection grants and directive replacements.
A serialized policy. Invalid or conflicting overrides throw.
const policy = buildNappletCsp({ connectOrigins: ['https://api.example'], directives: { 'media-src': ['blob:'] },}); Copy
const policy = buildNappletCsp({ connectOrigins: ['https://api.example'], directives: { 'media-src': ['blob:'] },});
Build the default NIP-5D CSP with validated host source-list replacements. Meta-unsupported directives must be configured on the host HTTP response.