Click or drag to resize

HttpConfigurationExtensionsGenerateRequestVerficationHeaderToken Method

Generates an anti-forgery token that can be manually added to an HTTP request header, e.g., from within an AJAX request.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static string GenerateRequestVerficationHeaderToken(
	this HttpRequestMessage request
)
View Source

Parameters

request  HttpRequestMessage
HTTP request message.

Return Value

String
Anti-forgery token to be added as an HTTP header value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also