base-uri
A Content Security Policy directive that limits what a page's base element may set as the base for its relative links and script paths. It does not fall back to default-src, so it has to be set on its own, usually to 'self' or 'none'.
What base-uri does not show
Covered in CrawlCheck's guide to rolling out a Content Security Policy from report-only to enforced. It protects how relative URLs resolve; it does not restrict where scripts may load from.
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 · strict-dynamic · form-action · upgrade-insecure-requests · 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 base-uri
What is base-uri?
A Content Security Policy directive that limits what a page's base element may set as the base for its relative links and script paths. It does not fall back to default-src, so it has to be set on its own, usually to 'self' or 'none'.
What does base-uri not show or guarantee?
It does not fall back to default-src, so it has to be set on its own, usually to 'self' or 'none'. Covered in CrawlCheck's guide to rolling out a Content Security Policy from report-only to enforced. It protects how relative URLs resolve; it does not restrict where scripts may load from.
Which area of the glossary does base-uri 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.
← upgrade-insecure-requests · object-src →
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.