Enabling XSRF Token Protection

For all modifying operations such as POST, PUT and DELETE, the XSRF token is used in the HTTP request-response header field.

Once you have enabled XSRF token on the device, the token is extracted after the first GET request triggered by the application. This token is retained in the device memory, and is added to all subsequent modifying requests.
The following code illustrates how to enable XSRF token.
parameter.enableXSRF(true);