Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoAuthorizedJsonController

    An abstract API controller that only supports JSON and all requests must contain the correct csrf header

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [ValidateAngularAntiForgeryToken]
    public abstract class UmbracoAuthorizedJsonController : UmbracoAuthorizedApiController
    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX