CrossSiteAttribute Class
Prevents Cross-site request (or CSRF) disallow an attacker to induce actions that they do not intend to.
Only HTTPS requests are supported!
Namespace:
Walter.Web.FireWall.AnnotationsAssembly: Walter.Web.FireWall (in Walter.Web.FireWall.dll)
Remarks
The default is false, typically this attribute will be used on all API endpoints that are supposed to be accessed only by code in the application's JavaScript
Only HTTPS requests are supported, in some case it may capture without HTTPS requests but not it's not reliable and therefore not recommended
Examples
C#
[HttpPost] [CrossSite(useDefaultRedirect:false)] [Ignore(skip: FireWallGuardActions.ALL &~FireWallGuardActions.RejectCrossSiteRequests)] public IActionResult UpdateProfile([FromBody] UserViewModel model) { ... }
Inheritance Hierarchy
Walter.Web.FireWall.Annotations..::..CrossSiteAttribute