Angular 2 HTTP request with client certificate authentication

2,109 views
Skip to first unread message

pinguinklaus

unread,
Mar 30, 2017, 11:59:09 AM3/30/17
to Angular and AngularJS discussion
Hello,

Is there a possibility to send a HTTP request with client certificate for authentication?
If I open the URL of my backend service which is client-cert secured in chrome browser, chrome is asking for a certificate to use for authentication, which is fine.
In my case, I am having an Ionic 2 hybrid-app which uses angular 2 and there is only an EMPTY RESPONSE after requesting a client-cert secured REST service.

Any ideas on that?

Regards

Sander Elias

unread,
Mar 30, 2017, 12:52:15 PM3/30/17
to Angular and AngularJS discussion
Hello,

Angular uses XMLhttpRequest under the hood, so this should not be an issue at all. You server might need some extra/different headers though, make sure you add those the the options.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages