Fix EZP-21270: The CSRF token is passed in header in GET request

JIRA issue: https://jira.ez.no/browse/EZP-21270

Fixed. Checking for request method not to be "GET", before passing CSRF token.