angularjs - Using https rather than http in angular to get data from server -
my application has following architecture,
an angular 1.5 application has service sends request 1 of endpoints on server.
the request received nginx server if http request redirected https server.
then nginx server redirects request upstream node server.
in angular use http service send , post request.
i don't know if request along data travelling encrypted https protocol or plain text http protocol angular server , back.can please clarify going on, data might contains personal details of user , important encrypted.
this question asks same not answered properly.
thank you.
you can force $http use https ensuring url formatted correctly.
var req = { method: 'post', url: 'https://localhost/api/v1/users', // note: https specified headers: { 'content-type': undefined }, data: { test: 'test' } }
Comments
Post a Comment