SHARE
TWEET
Untitled
a guest
Dec 26th, 2014
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- .factory('CategoriesService', function ($filter, $http, appConfig, $q) {
- var config = {
- headers: {
- 'Authorization': 'Basic bW9iaWxlLmFwcDoxMzdhNWVhNzkxODcwNTAwNDFkNmZmZTcxM*******',
- }
- };
- var url, loadData;
- url = appConfig.api.rootUrl + appConfig.api.categories;
- loadData = function () {
- console.log('load Data');
- var defer = $q.defer();
- $http
- .get(url, config)
- .then(function (response) {
- defer.resolve(response);
- }, function (error) {
- defer.reject(error);
- });
- return defer.promise;
- };
- =====================
- Remote Address:**********:80
- Request URL:http://**********
- Request Method:OPTIONS
- Status Code:200 OK
- Request Headersview source
- Accept:*/*
- Accept-Encoding:gzip, deflate, sdch
- Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
- Access-Control-Request-Headers:accept, authorization
- Access-Control-Request-Method:GET
- Cache-Control:no-cache
- Connection:keep-alive
- Host:api.fap.mobi
- Origin:http://local***
- Pragma:no-cache
- Referer:http://local***
- User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
- Response Headersview source
- Allow:GET,HEAD,POST,PUT,PATCH,DELETE
- Cache-Control:no-cache
- Connection:keep-alive
- Content-Encoding:gzip
- Content-Type:text/html; charset=UTF-8
- Date:Fri, 26 Dec 2014 09:54:00 GMT
- Server:nginx/1.0.15
- Set-Cookie:*** path=/; httponly
- Transfer-Encoding:chunked
- Vary:Accept-Encoding
- X-Powered-By:PHP/5.5.18
- =====================
- Remove config:
- .get(url)
- Status Code:401 Unauthorized
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

