Fuse/CXF application ignores X-HTTP-Method-Override header
Issue
The HTTP header X-HTTP-Method-Override
is issued by an HTTP client to tell the server to treat the request as being of a type different from that in the main HTTP request line. Many sites have HTTP infrastructure that disallows request types other than GET and POST, but a webservice still needs to be able to handle other types -- DELETE, PATCH, etc.
In recent versions of Fuse, CXF ignores the X-HTTP-Method-Override
header, and only invokes the handler that is appropriate to the request line.
Environment
- Red Hat Fuse
- 7.6 and later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.