Fuse/CXF application ignores X-HTTP-Method-Override header

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content