strict-dynamic
A script-src keyword that tells the browser to trust any script loaded by a script it already trusts through a nonce or hash, and to ignore host allowlists and 'self' in that directive. It is what makes nonce-based policies workable with tag managers and other loaders.
What strict-dynamic means
Trust passes to whatever a trusted script loads, so a compromised trusted script can still bring in more.
What strict-dynamic does not show
Covered in CrawlCheck's guide to rolling out a Content Security Policy from report-only to enforced.
Where strict-dynamic comes up on this site
- CSP report-only: how to roll out a Content-Security-Policy without breaking your siteServing that script from the site’s own domain let it carry the nonce, the violations stopped, and the policy was switched to enforced with 'strict-dynamic' so that scripts loaded by nonced scripts are trusted too.
Terms this definition uses
Related terms in Security and privacy
Where an agent, a tool or a page can be turned against its operator, and the controls that limit the damage without proving safety.
Cookie prefix · Partitioned cookie · SameSite · Public suffix · Schemeful same-site · Subresource Integrity · Integrity metadata · CSP report-only · CSP hash · form-action · upgrade-insecure-requests · base-uri · object-src · Referrer leakage · Dangling CNAME · Subdomain takeover · SPF lookup limit · TLS downgrade · Certificate Transparency · X-Frame-Options · frame-ancestors · Referrer-Policy · Permissions-Policy · Encrypted Client Hello · lookalike domain · homoglyph · incident switch · high-risk field · Indirect prompt injection · Direct prompt injection · Jailbreak · Data exfiltration · Sensitive information disclosure · Secret leakage · Insecure output handling · Excessive agency · Least privilege · Trust boundary · Input validation · Output validation · Allowlist · Denylist · SSRF · RCE · Credential scope · OAuth scope · API key · Bearer token · mTLS · Rate-limit policy · Audit log · PII · Data minimization · Purpose limitation · Retention period · Data residency · Tenant isolation · Threat model · DMARC · DMARC alignment · SPF · DKIM · MTA-STS · TLS-RPT · CAA record · DNSSEC · hard bounce
Questions about strict-dynamic
What is strict-dynamic?
A script-src keyword that tells the browser to trust any script loaded by a script it already trusts through a nonce or hash, and to ignore host allowlists and 'self' in that directive. It is what makes nonce-based policies workable with tag managers and other loaders.
What does strict-dynamic not show or guarantee?
Covered in CrawlCheck's guide to rolling out a Content Security Policy from report-only to enforced.
Which area of the glossary does strict-dynamic belong to?
Security and privacy: Where an agent, a tool or a page can be turned against its operator, and the controls that limit the damage without proving safety.
← CSP hash · form-action →
See it in the full glossary · 792 terms across 19 areas.
Free browser extension
See this on any site you visit, in one click.
CrawlCheck for Chrome grades every site you visit A–F and shows, from your own browser, what search engines and AI assistants are actually served. Free, no account.