The HTTP Content-Security-Policy
(CSP) form-action
directive restricts the URLs which can be used as the target of form submissions from a given context.
Warning: Whether form-action
should block redirects after a form submission is debated and browser implementations of this aspect are inconsistent (e.g. Firefox 57 doesn't block the redirects whereas Chrome 63 does).
CSP version | 2 |
---|---|
Directive type | Navigation directive |
default-src fallback | No. Not setting this allows anything. |