javascript - Is this a secure connection? -
i have function opens new browser tab , loads lot of data it:
var contact_id = $('#contact_id).val(); $.ajax({ type: 'post', url: 'contacts.php', data: 'id' + contact_id, success: function(data) { var win = window.open("data:text/html, " + encodecuricomponent(data)); win.focus(); } });
the users connects thought https protocol , clicks on link contact name additional data on new tab page. when new tab gets opened doesn't specify protocol is. seems data being given out unsecurely, correct?
i have tried replace line:
var win = window.open("data:text/html, " + encodecuricomponent(data));
to one:
var win = window.open("https:text/html, " + encodecuricomponent(data));
but request-uri large (apache).
please help.
the "text/html" part of argument content-type, has nothing transport protocol http or https.
however, doing displaying results of post in new window, not performing new request server. so, have worry original post being sent on https.
you can confirm in network tab of google chrome dev tools example.
Comments
Post a Comment