angularjs - Using https rather than http in angular to get data from server -


my application has following architecture,

  1. an angular 1.5 application has service sends request 1 of endpoints on server.

  2. the request received nginx server if http request redirected https server.

  3. 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' } } 

angularjs docs - $https


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -