UseMvc() 前加入下列程式碼,net core 1.0的時候是app.UseIdentity() 現在已經棄用改為以下方法。 //使用驗證 app.UseAuthentication();.
確定! 回上一頁