Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public login(credentials): Observable<Object> {
- let httpParams = this.httpParams;
- for (let key in credentials){ httpParams = httpParams.set(key, credentials[key])};
- return this.httpClient.post(this.url + this.loginEndpoint, httpParams, { withCredentials: true });
- }
- this.authServiceProvider.login({username: this.username, password: this.password}).subscribe(data => {
- <display logged in page>
- });
- access-control-allow-credentials: true
- access-control-allow-headers: origin, x-requested-with, content-type
- access-control-allow-origin: http://localhost:8100
- content-encoding: gzip
- content-length: 95
- content-type: text/javascript
- date: Wed, 21 Mar 2018 15:55:50 GMT
- server: Apache-Coyote/1.1
- set-cookie: JSESSIONID=BE1997D948436D29A90DA24DC518E29F; Path=/api/; HttpOnly
- status: 200
- vary: Origin,Accept-Encoding
- :authority: api.com
- :method: POST
- :path: /api/login.jsp
- :scheme: https
- accept: application/json, text/plain, */*
- accept-encoding: gzip, deflate, br
- accept-language: en-US,en;q=0.9
- content-length: 283
- content-type: application/x-www-form-urlencoded;charset=UTF-8
- cookie: JSESSIONID=BE1997D948436D29A90DA24DC518E29F; _ga=GA1.2.744976386.1521627198; _gid=GA1.2.533597894.1521627198
- origin: http://localhost:8100
- referer: http://localhost:8100/?ionicplatform=android&http://localhost:8100/ionic-lab
- user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
- Referer: http://localhost:8100/?ionicplatform=android&http://localhost:8100/ionic-lab
- Content-Type: application/x-www-form-urlencoded;charset=UTF-8
- Origin: http://localhost:8100
- Host: api.com
- Accept: application/json, text/plain, */*
- Connection: keep-alive
- Accept-Language: en-us
- Accept-Encoding: br, gzip, deflate
- Content-Length: 283
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
- Referer: http://localhost:8100/?ionicplatform=android&http://localhost:8100/ionic-lab
- Content-Type: application/x-www-form-urlencoded;charset=UTF-8
- Origin: http://localhost:8100
- Host: api.com
- Accept: application/json, text/plain, */*
- Connection: keep-alive
- Accept-Language: en-us
- Accept-Encoding: br, gzip, deflate
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
- Cookie: JSESSIONID=32D79DD5171A6B82783252CE22E55083
- Content-Length: 283
Add Comment
Please, Sign In to add comment