![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET MVC
文章平均质量分 56
ChenQian_Net
这个作者很懒,什么都没留下…
展开
-
ASP.NET MVC Action 返回类型
ASP.NET MVC Action 返回类型页面1. 当前页面2. 指定页面Json1. 一般形式2. 允许 Get 请求File 页面 1. 当前页面 return View(); 2. 指定页面 return View("name"); Json 1. 一般形式 return Json(data); 2. 允许 Get 请求 return Json(data, JsonRequestBehavior.AllowGet); File return File(fileContents, conte原创 2021-04-14 01:35:36 · 128 阅读 · 0 评论 -
ASP.NET MVC 网站安全性
ASP.NET MVC 网站安全性XSS 跨站脚本攻击[CSRF 跨站请求伪造](https://docs.microsoft.com/zh-cn/aspnet/web-api/overview/security/preventing-cross-site-request-forgery-csrf-attacks)Cookie 盗窃重复攻击开放重定向 应用程序的构建基于这样一个假设, 即只有特定用户才能执行某些操作,而其他 用户则不能执行这些操作。 开发人员希望的应用程序使用方式和黑客的使用方式之间有一条不原创 2021-04-14 01:31:29 · 183 阅读 · 0 评论