JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<form id="addFolder" action="http://localhost:8081/jasperserver-pro612/flow.html?_flowExecutionKey=e2s1&_eventId=deleteResources" method="POST">
  <input type="text" name="selectedResources" value='[{"URIString":"/organizations/organization_1/reports/interactive/TableReport","type":"Report"}]'/>
  <input type="submit" value="OK"/>
</form>

JavaScript

jQuery("#addFolder").on("submit", function(event) {
	event.preventDefault();
  
  console.log("Sending ", this.method, " with URL ", this.action);
  
	jQuery.ajax({
    url: this.action,
    method: this.method,
    headers: { 'X-REMOTE-DOMAIN': '1' }
	});
})