Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13126

For Swagger, add an option whether to use X-Forward headers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.24.0, 3.0.0
    • camel-swagger
    • None
    • Moderate

    Description

      An earlier JIRA: CAMEL-12855 created an issue where the forwarded header could be used to set the "host" for Swagger. This overwrote the old behavior where one could specify a "hard-code" host in the RestConfiguration.

      Add an option to control whether these x-forward headers should be applied or not, to have the old behavior vs the new. (e.g. useXForwardHeaders = true/false)

      cibsen@e-ma.net, a couple of questions:

      1. would the default be the new behavior (using the headers), or the old behavior (do not use the headers) ?
      2. should the parameter turn on/off the entire X-FORWARD section... that is in the setupXForwardedHeaders() here ?

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            dariusx Darius Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: