Controlling HTTP - POST size in JBOSS EAP 7.4

Posted on

We are using JBOSS EAP 7.4 and a single Web App is deployed. We like to control the size of HTTP POST requests and limit it to 5MB on both http and https listeners. If there any API request with more than 5MB then the requests needs to be failed and should not proceed further.

Do we have any OOTB feature to control this request size? We have tried using this flag(max-post-size="10485760") in standalone.xml, but its not restricting the request to the application.

if anyone has any idea, please suggest.

Responses