I am looking to disable the HTTP Methods that are not in use like OPTIONS, HEAD in a GlassFish 3.1 Server.
Thank you.
Update:
Currently, I have implemented a filter that checks for the HTTP method of the request, and reject the non supported ones. When I say,
response.sendError(HttpServletResponse.SC_NOT_FOUND);
The response contains header
Allow: TRACE, OPTIONS
Which are not supported by my application.