1 Configure<AbpAntiForgeryOptions>(options => 2 { 3 options.TokenCookie.Expiration = TimeSpan.Zero; 4 options.AutoValidate = false; //表示不验证防伪令牌 5 //options.AutoValidateIgnoredHttpMethods.Remove("GET"); 6 //options.AutoValidateFilter = 7 // type => !type.Namespace.StartsWith("MyProject.MyIgnoredNamespace"); 8 });