I am trying to post some data from one local asp.net mvc site to another but am unable to do so. I execute the following post on site A
// tried this and it didn't work
//$.post("http://localhost/PlatformPortal/Buyers/Account/SignIn",
//{sign:authHeader})
// Currently trying this
$.ajax({
url: "http://localhost/PlatformPortal/Buyers/Account/SignIn",
data: authHeader,
type: "POST",
success: function() { alert('Success!'); }
})
I expected the POST "SignIn" action in the AccountController for SiteB to be hit, but it isn't. However, I do get the "Success!" popup message when I execute the post by clicking the link that the jquery snippet pasted above is wired to. Am I missing something ?