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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.24.0, 3.0.0
    • Component/s: camel-swagger
    • Labels:
      None
    • Estimated Complexity:
      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)

      Claus Ibsen, 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

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

              Dates

              • Created:
                Updated:
                Resolved: