0

I have read these questions on disabling a list of methods in Tomcat:

But is there a way to return a 405 response instead of a 403 response?

Community
  • 1
  • 1
z12345
  • 2,186
  • 4
  • 20
  • 28

1 Answers1

2

Build a servlet filter that checks the request method and sends a 405 response if the method is on a blacklist.

z12345
  • 2,186
  • 4
  • 20
  • 28