How to add a custom request header based on request URI in route

Solution Verified - Updated -

Issue

  • How to add a custom request header when the URI contains a particular path.
  • How to inject a custom header when the URI with a particular path is accessed.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.16+
  • Routes

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