summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 398d06c..fb1486e 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1,5 +1,11 @@
var app = angular.module('ciat', []);
+app.config(['$httpProvider', function($httpProvider) {
+ $httpProvider.defaults.useXDomain = true;
+ delete $httpProvider.defaults.headers.common['X-Requested-With'];
+ }
+]);
+
app.controller('VisualisationController', ['$scope', '$http',
function($scope, $http) {
$scope.builders = $http.get('http://ciat.baserock.org:8010/json/builders');