EZP-20467: added CSRF token check before executing REST requests