Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<html>
<head>
<script type="text/javascript" src="jquery-3.3.1.js"></script>
<script type="text/javascript">
$.ajaxSetup ({
cache: false // Disable caching of AJAX responses
});
$(document).ready(function() {
$.ajax({
type: 'GET',
url: 'https://k2.denallix.com/Api/Workflow/preview/workflows/',
dataType: 'json',
crossDomain: true,
xhrFields: {
withCredentials: true
},
success: function(json_data) {
console.log('success');
$("#wfs").html(JSON.stringify(json_data));
},
error: function() {
alert('Failed!');
},
});
});
</script>
</head>
<body>
<span id='wfs'>(Result)</span>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment