POST request from addon page to server is empty

I think this may be related to this discussion I just remembered:

The conclusion there was that it is a bug, which still hasn’t been fixed.

Here are some different approaches that might work:

  • don’t just have a form POSTing to the target host, embed an iframe with that form from that host instead (assuming you control that server)
  • use GET (just keep some security aspects in mind)
  • use XHR or fetch to POST (in a submit handler, grab the formdata and programmatically post it, then handle the response)