angular get response headers
this.authenticationService.login(this.f.email.value, this.f.password.value)
.pipe(first())
.subscribe(
(data: HttpResponse<any>) => {
console.log(data.headers.get('authorization'));
},
error => {
this.loading = false;
});
At my Service Side.
return this.http.post<any>(Constants.BASE_URL + 'login', {username: username, password: password},
{observe: 'response' as 'body'})
.pipe(map(user => {
return user;
}));
Also in JavaScript:
- how to draw flower petals around circle javascript
- javascript rpg tutorial
- jest axios manual mock
- admob react native
- javascript replace big list
- get value in maps loop using enzym
- how to print NODE_PATH
- how to create angular project in visual studio code windows 10
- refresh after delete in express
- route react
- document queryselectorall and map javacript
- oauth2 spring boot react google example
- how to find the smallest two numbers in an array javascript
- var x=21; var myFunction = function(){ console.log(x); var x= 20; }; myFunction();
- js redirect code
- string comparison in javascript
- nsenter
- javascript format date yyyy-mm-dd
- javascript get index of object with value in array
- node js code for saving first middle and last name
- name class and id referance in ajax
- mdn select event
- i18n react get current language
- jquery parsexml get attribute