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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -