JSFiddle - React, Tailwind, and code Playground

HTML

<html>
	<head>
<script>
function damnIt() {
    $.ajax({
		contentType: "application/json",
	    dataType: "json",
	    type: "POST",
		crossDomain: true,
	    url: "http://corsfun-mwessendorf.rhcloud.com/ag-push/rest/registry/device",
	    headers: {
	    	"ag-mobile-variant": "a892d9b3-ccbd-4cda-91a6-33d527a96bcd"
	    },
	    error: function( error ){
			// Log any error.
	        console.log( "ERROR:", error );
 	   	},
	    data: JSON.stringify({
	    	category: "broadcast",
	        deviceToken: "4a81527d-6967-40bb-ac56-755e8cbfb579",
	        clientIdentifier: "alias@something"
	    })
	});

}
</script>		
		
		
		
	</head>
	<body>
		Hello <button onClick="damnIt()">Register a device........</button>
		
		<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
		
	</body>

</html>