Hello Resilio-Team,
I am trying to get the JSON output from "http://127.0.0.1:****/api/v2/folders/activity" with the following code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
</head>
<body>
<script>
$(document).ready(function() {
$.ajax({
url: "http://127.0.0.1:50136/api/v2/folders/activity",
cache: true,
dataType: "jsonp",
jsonp: false,
jsonpCallback: false,
type: "GET",
complete: function(result) {
alert(result);
},
success: function(result) {
alert(result);
},
error: function(result) {
console.log(result);
}
});
});
</script>
</body>
</html>
Chrome Network Monitor seems to look fine:
But everytime i got an error message in console:
Can some one help to fetch that json data correctly?