You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Darius Cooper (JIRA)" <ji...@apache.org> on 2019/01/27 02:51:00 UTC

[jira] [Updated] (CAMEL-13126) For Swagger, add an option whether to use X-Forward headers

     [ https://issues.apache.org/jira/browse/CAMEL-13126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darius Cooper updated CAMEL-13126:
----------------------------------
    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:
 # would the default be the new behavior (using the headers), or the old behavior (do not use the headers) ?
 # should the parameter turn on/off the entire X-FORWARD section... that is in [the setupXForwardedHeaders() here|https://github.com/apache/camel/blob/release/2.23.0/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java#L358-L385] ?

  was:
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], would the default be the new behavior (using the headers), or the old behavior (do not use the headers) ?


> For Swagger, add an option whether to use X-Forward headers
> -----------------------------------------------------------
>
>                 Key: CAMEL-13126
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13126
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Darius Cooper
>            Priority: Major
>
> 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:
>  # would the default be the new behavior (using the headers), or the old behavior (do not use the headers) ?
>  # should the parameter turn on/off the entire X-FORWARD section... that is in [the setupXForwardedHeaders() here|https://github.com/apache/camel/blob/release/2.23.0/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerSupport.java#L358-L385] ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)