Modify Response Headers for Direct Response routes

With the direct response I can only send text-based traffic. I wan't to use a single LB as simple "asset server", which hosts images, CSS and JS for multiple purposes, i.e. for the customer (error) response pages from XC. Due to the fact, that I can't set the content type of the response, the browser won't render the SVG as SVG.

  • Sven Schaefer
  • Apr 16 2025
  • Attach files
  • Jean-Marc REMILIEN commented
    29 Jan 07:30pm

    Totally agree with this request.
    We encountered an issue where a direct response with a custom html page would have been great to directly inform our users of an application outage without the need of a redirect to a hosted maintenance page...
    Actually, the direct response route body is sent with the content-type : plain-text and an override to text-html or at least a choice would be great.