嗨我試圖驗證從其他網站我已經在MVC3 .NET C#我的解決方案,其他網站使用這個崗位作爲認證:認證來自另一個站點
http://www.othersite.com/Account/logInToCMS?username=UNAME&password=PWD
我嘗試以下
<form method="post" >
<input name='username' />
<input name='password' />
<div class="button"><%: Ajax.ActionLink("Login", "http://www.othersite.come/Account/logInToCMS" , new AjaxOptions { HttpMethod = "POST" })%></div>
</form>
但響應會導致一個錯誤:
「NetworkError:400錯誤的請求 - http://localhost:50505/account/http%3a/www.othersite.com/Account/logInToCMS「
所以,如果我能以某種方式刪除的‘http://本地主機:50505 /帳號/’的一部分,將工作
如果它是另一個web應用程序...只是使用普通的URL ...不要使用助手。您可以隨時在web.config中擁有該登錄URL來隨時更改它。 – Romias 2011-12-21 15:03:55