2021-09-08 14:54:21 +02:00
|
|
|
using Umbraco.Cms.Web.BackOffice.Filters;
|
2020-05-18 15:19:52 +02:00
|
|
|
|
2022-06-20 08:37:17 +02:00
|
|
|
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
|
2020-05-18 15:19:52 +02:00
|
|
|
{
|
|
|
|
|
}
|