I\'m getting this reponse when making an http request in service.
Here\'s the Login component
export class LoginComponent {
credentials: Credentials;
I faced this kind of issue. The problem was in header, I was pushing null value i.e.
cloned = req.clone({
headers: req.headers.append('token', token) // token is null
})
to fix this, I check token before setting into header i.e.
if (token) {
cloned = req.clone({
headers: req.headers.append('token', token)
})
}