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).
Using a <form> element with an action set to inline JavaScript will result in a CSP violation.
<metahttp-equiv="Content-Security-Policy"content="form-action 'none'"/><formaction="javascript:alert('Foo')"id="form1"method="post"><inputtype="text"name="fieldName"value="fieldValue"/><inputtype="submit"id="submit"value="submit"/></form><!--
// Error: Refused to send form data because it violates the following
// Content Security Policy directive: "form-action 'none'".
-->