How can I make HTTPS request from angular app to c# controller. Is it possible at all? How do I provide certificate & public / private key along with C# request.
e.g
export const environment = {
production: false,
apiUrl: 'https://ourlady:4000'
};
const baseUrl = `${environment.apiUrl}/accounts`;
register(account: Account) {
return this.http.post(`${baseUrl}/register`, account);
}
CodePudding user response:
You can make https calls with angular HttpClient - just start your request with https:// Everything else, including check for certificate, is done by browser