I can't get my Angular App working to send a http request to my locally running laravel-api. In Postman it's working perfectly, but I can't get it working in Angular.
This is the working post-request triggered by Postman.
This is my Angular-logic:
login(username: string, password: string): Observable<any> {
let body = new FormData();
body.append('email', username);
body.append('password', password);
this.http.post(this.LOGIN_USER_URL, body);
return this.http.post<any>(this.LOGIN_USER_URL, body);
}
If I run my angular application and the post-requests get triggered, it's returning nothing:
Does anybody know, what's wrong with my code?