Reputation: 11825
If I send a password in JSONP with jquery over HTTPS to perform authentication is it secure? I can't use a JSON POST.
EDIT:
$.ajax({
type : "POST",
url: "https://example.com/api.php",
dataType: "jsonp",
jsonp: "callback",
data: { password:123456 }
}).done(function(rsp) ....
Upvotes: 3
Views: 195
Reputation: 158
JSONP is a method for sending JSON data without worrying about cross-domain issues. And for security purpose POST method is the secure method as compare to GET method.
Upvotes: 0
Reputation: 445
if you'r afraid of man in the middle its an security issues that the user have to make sure that he is secure not the developer
Upvotes: 3