View Source
This will format the JSON output for use with AngularJs's approach to JSON Vulnerability attacks
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
public class AngularJsonMediaTypeFormatter : NewtonsoftJsonOutputFormatter
Constructors
View Source
Declaration
public AngularJsonMediaTypeFormatter(JsonSerializerSettings serializerSettings, ArrayPool<char> charPool, MvcOptions mvcOptions)
Parameters
Type |
Name |
Description |
JsonSerializerSettings |
serializerSettings |
|
System.Buffers.ArrayPool<System.Char> |
charPool |
|
Microsoft.AspNetCore.Mvc.MvcOptions |
mvcOptions |
|
Fields
View Source
Declaration
public const string XsrfPrefix = ")]}',\n"
Field Value
Type |
Description |
System.String |
|
Methods
View Source
CreateJsonWriter(TextWriter)
Declaration
protected override JsonWriter CreateJsonWriter(TextWriter writer)
Parameters
Type |
Name |
Description |
TextWriter |
writer |
|
Returns
Type |
Description |
JsonWriter |
|
View Source
Declaration
protected static JsonSerializerSettings RegisterJsonConverters(JsonSerializerSettings serializerSettings)
Parameters
Type |
Name |
Description |
JsonSerializerSettings |
serializerSettings |
|
Returns
Type |
Description |
JsonSerializerSettings |
|