Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTTP Content-Security-Policy (CSP) navigate-to directive restricts the URLs to which a document can initiate navigations by any means including <form> (if form-action is not specified), <a>, window.location, window.open, etc. This is an enforcement on what navigations this document initiates, not on what this document is allowed to navigate to.
Note: If the form-action directive is present, the navigate-to directive will not act on navigations that are form submissions.
| CSP version | 3 |
|---|---|
| Directive type | Navigation directive |
default-src fallback | No. Not setting this allows anything. |