Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created May 14, 2018 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikerodionov/f2099fcd7e85daeb80b8e2676ffe295b to your computer and use it in GitHub Desktop.
Save mikerodionov/f2099fcd7e85daeb80b8e2676ffe295b to your computer and use it in GitHub Desktop.
<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