For security purpose regarding my Springboot application, one client is asking for a restriction of the allowed methods
Indeed, although my application only provides GET
and POST
methods, when I run nikto -ssl -h localhost:8181
I get the following messages:
+ Allowed HTTP Methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
+ OSVDB-397: HTTP method ('Allow' Header): 'PUT' method could allow clients to save files on the web server.
+ OSVDB-5646: HTTP method ('Allow' Header): 'DELETE' may allow clients to remove files on the web server.
In these circumstances, I am looking for a way to restrict the HTTP methods allowed by my Springboot application and effectively expose only GET
and POST
methods
Thanks for help