Angular-Ionic HttpClient Post request to Asp.net Api retruns 400 but swagger returns 200/401
I have a Ionic App and a asp.net Api. To authorize I send the Login Credentials in a Post request. Swagger returns this: or When sending my Post request like this: httpOptions = { headers: new HttpHeaders({ ‘content-Type’: ‘application/json’, ‘accept’: ‘*/*’ }) }; login(credentials: {username: string; pw: string}): Observable <any> { return this.http.post(‘https://localhost:7206/auth/login’, credentials, this.httpOptions)… Read More Angular-Ionic HttpClient Post request to Asp.net Api retruns 400 but swagger returns 200/401