Files
Umbraco-CMS/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs
Bjarke Berg 1594a84d80 migated remaining backoffice controllers
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 10:08:08 +02:00

20 lines
799 B
C#

using Umbraco.Web.BackOffice.Filters;
using Umbraco.Web.Common.Filters;
namespace Umbraco.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]
[AngularJsonOnlyConfiguration] // TODO: This could be applied with our Application Model conventions
[JsonExceptionFilter]
public abstract class UmbracoAuthorizedJsonController : UmbracoAuthorizedApiController
{
}
}