Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.SignUp = function () {
- $http({
- method: $scope.method,
- url: $scope.url,
- data: {searchTerm: "Yoshi", searchType: "post"},
- crossDomain : true,
- headers: {
- 'Session-id' : 'Basic d2VudHdvcnRobWFuOkNoYW5nZV9tZQ==',
- "Access-Control-Allow-Origin" : "http://local.scriball.com",
- }
- }).
- success(function (data, status) {
- $scope.status = status;
- $scope.data = data;
- }).
- error(function (data, status) {
- console.log(status);
- $scope.data = data || "Request failed";
- $scope.status = status;
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement