Peter
Peter

Reputation: 11825

Is it secure to send a password over HTTPS with jsonp

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

Answers (2)

Abhishek Rawal
Abhishek Rawal

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

Emad Fani
Emad Fani

Reputation: 445

  • https with post method is secure


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

Related Questions