How safe is JSONP implementation for login functionality
- by MKS
Hi Guys,
I am using JSONP for login authentication, below is sample JQuery Code:
$.ajax({
type:"GET",
url: "https://staging/login/Login.aspx", // Send the login info to this page
data: str,
dataType: "jsonp",
timeout: 200000,
jsonp:"skywardDetails",
success: function(result)
{
//Do something after the success
}
});
In above code, I am having HTTPS page for authentication, from my login dailog box, I am sending username and password to my login.aspx page, which calls "WEB SERVICE" taking input send by the login dialog page and return the users details as JSONP object.
My question is that, how safe is above implementation and do also suggest how can I improve my security implementation.
Thanks!