Can anybody help to find out what i'm doing wrong here. For every rest calls application calls the Rest APIs twice.
But first request doesn't contains request payload and No response, but both requests give same response status code.
Here is my code.
login(username: string, password: string) {
const body = { userName: username, password: password };
this. httpClient.post<User>(this.url, body, { headers: this.header })
.subscribe( data => {
return data;
});