title: Chrome Extension Modify FormData
body: <pre><code>chrome.webRequest.onBeforeRequest.addListener(function (details) {
  if (details.method === "POST") {
      var bodyObj = details['requestBody'];
      // I can see/modify bodyObj.formData, but
  }
  }, {
  urls: ["&lt;all_urls&gt;"]
  }, [
  "blocking", "requestBody"
  ]););
  </code></pre>
  
  <p>How can I return a modified formData? </p>
  
  <p>I see from Chrome Extensions's documentation that I can cancel a request, redirect a request, or modify the request headers, but how can I change the formData?</p>