Avoiding Wildfly error when using proxy for requests