.netcore 3.1 防开放重定向攻击 电脑版发表于:2020/10/12 16:38  >#.netcore 3.1 防开放重定向攻击 [TOC] ```csharp try { //。。。验证合法地址 return LocalRedirect(returnurl); } catch (Exception) { //验证失败将跳转到指定的地址 return Redirect("/"); } ```