$http.get('/someurl'). success(function(data, status, headers, config) { // callback called asynchronously // when response available }).
in above code, want hide header information. using browser inspect method can view header information.
it's not possible hide requests. couple of more additions (not sure why downvoted, i'll attempt more clear).
javascript client-side, means get's run client's machine. end user able inspect code, , able see it's attempting do. if code obfuscated, can still converted or read , able see how it's making request (thus being able interpolate request headers sent.)
what if client using custom browser? example, 1 wrote himself? make request server, , it's going respond javascript/html. then, javascript parser going attempt make request, can capture request attempting made.
in chrome, web requests logged ease of use end developer. not can disabled or turned off, because stated in previous paragraph make appear if it's hidden, , wouldn't effective @ stopping knows http protocol.
and finally, if possible, monitor traffic between client , server, , inspect network traffic see sent , received (http documented rfc protocol interchanging web requests, , giant string of headers , view-able.) in short, it's not possible.
Comments
Post a Comment