例:
アプリケーション = https://test2.mytest.com/MyApplication/Download.aspx
アプリケーションでは、web.config でフォーム認証が有効になっています。
<authentication mode="Forms">
<forms loginUrl="https://test.mytest.com/Login/" name=".ASPXAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
アプリケーションにアクセスすると、ログイン ページに正しくリダイレクトされます:
https://test.mytest.com/Login/?ReturnUrl=%2fMyApplication%2fDownload.aspx
ただし、ログインに成功すると、https://test2.mytest.com/MyApplication/Download.aspx ではなく、https:
//test.mytest.com/MyApplication/Download.aspx
に
移動します。
元のリクエストのサブドメイン(test2.mytest.com)ではなく、ログインアプリケーションがあるサブドメイン(test.mytest.com)を使用しています。ログインアプリがオンになっているサブドメインではなく、フォーム認証を元の要求サブドメインにリダイレクトする方法はありますか?
これに関する任意の助けをいただければ幸いです。