diff options
-rw-r--r-- | js/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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'); |