Click or drag to resize

AntiForgeryGetHtml Method

Generates an anti-forgery token for this request. This token can be validated by calling the Validate() method.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public static string GetHtml(
	HttpResponseMessage response
)
View Source

Parameters

response  HttpResponseMessage
Response message.

Return Value

String
An HTML string corresponding to an <input type="hidden"> element. This element should be put inside a <form>.
Remarks
This method has a side effect: it may set a response cookie.
See Also