Will using https prevent client from accessing any confidential data inside JavaScript
Posted
by
saveing saving
on Stack Overflow
See other posts from Stack Overflow
or by saveing saving
Published on 2012-11-12T13:34:52Z
Indexed on
2012/11/12
23:01 UTC
Read the original article
Hit count: 231
I am working on an asp.net mvc web application, on the view i wrote the following JavaScript which calls an external web service :-
<script type="text/javascript">
$(function() {
$.getJSON("https://MyERPsystem.com/jw/web/json/hr/getsalary/byid?master_username=superadmin&password_hash=9449B5ABCFA9AFDA36B801351ED3DF66&employeeid=A200121",
{
//code goes here
},
function(data) {
$.each(data.items, function(i,item){
//code goes here
});
});
}) </script>
So if the external web service implements https, then does this means that the master_username and password_hash inside the javaScript cannot be seen by external users? Best Regards
© Stack Overflow or respective owner