Workaround to be able to invoke Gerrit API Historically Gerrit needed the X-Gerrit-Auth HTTP header that is unknown to the browser and to the client. Workaround the issue by injecting a ServletFilter that will enable the REST API paths relevant to the current plugin as valid authenticated endpoints. Bug: Issue 8843 Change-Id: I5c39157d5adbcc34a2d112ffe8c2229183476ef8