Skip to content
Permalink
Browse files
This closes #76
  • Loading branch information
ahgittin committed Jan 16, 2019
2 parents 45beb31 + b82e394 commit dab9a91cd98b6d4be9ad60ea8c303c54c86b8305
Showing 2 changed files with 9 additions and 2 deletions.
@@ -34,7 +34,7 @@
</parent>

<properties>
<resteasy.version>3.0.19.Final</resteasy.version>
<resteasy.version>3.6.2.Final</resteasy.version>
</properties>

<dependencies>
@@ -61,6 +61,7 @@
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.jboss.resteasy.client.ClientExecutor;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.client.ProxyBuilder;
import org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor;
@@ -168,7 +169,13 @@ protected ClientExecutor getClientExecutor(Credentials credentials) {
.setConnectionManager(connectionManagerSupplier.get())
.build();

return new ApacheHttpClient4Executor(httpClient);
return new ApacheHttpClient4Executor(httpClient) {
@Override
public ClientResponse execute(ClientRequest request) throws Exception {
request.header("X-Csrf-Token-Required-For-Requests", "none");
return super.execute(request);
}
};
}

/**

0 comments on commit dab9a91

Please sign in to comment.