Files
Umbraco-CMS/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs
Nikolaj Geisle e762fa91bc V10: fix build warnings in Web.BackOffice (#12479)
* Run code cleanup

* Start manual run

* Finish dotnet format + manual cleanup

* Fix up after merge

* Fix substrings changed to [..]

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-06-20 08:37:17 +02:00

16 lines
605 B
C#

using Umbraco.Cms.Web.BackOffice.Filters;
namespace Umbraco.Cms.Web.BackOffice.Controllers;
/// <summary>
/// An abstract API controller that only supports JSON and all requests must contain the correct csrf header
/// </summary>
/// <remarks>
/// Inheriting from this controller means that ALL of your methods are JSON methods that are called by Angular,
/// methods that are not called by Angular or don't contain a valid csrf header will NOT work.
/// </remarks>
[ValidateAngularAntiForgeryToken]
public abstract class UmbracoAuthorizedJsonController : UmbracoAuthorizedApiController
{
}