Class AngularJsonOnlyConfigurationAttribute
Applying this attribute to any webapi controller will ensure that it only contains one json formatter compatible with the angular json vulnerability prevention.
Inheritance
System.Object
System.Attribute
Namespace: Umbraco.Web.WebApi
Assembly: Umbraco.Web.dll
Syntax
public class AngularJsonOnlyConfigurationAttribute : Attribute, _Attribute
Methods
View SourceInitialize(HttpControllerSettings, HttpControllerDescriptor)
Declaration
public virtual void Initialize(HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor)
Parameters
Type | Name | Description |
---|---|---|
HttpControllerSettings | controllerSettings | |
HttpControllerDescriptor | controllerDescriptor |