File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 59
59
. option ( "--no-prepend-path" , "Avoid prepending target paths to proxied requests" )
60
60
. option ( "--no-include-prefix" , "Don't include the routing prefix in proxied requests" )
61
61
. option ( "--auto-rewrite" , "Rewrite the Location header host/port in redirect responses" )
62
+ . option ( "--change-origin" , "Changes the origin of the host header to the target URL" )
62
63
. option (
63
64
"--protocol-rewrite <proto>" ,
64
65
"Rewrite the Location header protocol in redirect responses to the specified protocol"
@@ -214,6 +215,10 @@ if (args.autoRewrite) {
214
215
options . autoRewrite = true ;
215
216
log . info ( "AutoRewrite of Location headers enabled." ) ;
216
217
}
218
+ if ( args . changeOrigin ) {
219
+ options . changeOrigin = true ;
220
+ log . info ( "Change Origin of host headers enabled." ) ;
221
+ }
217
222
218
223
if ( args . protocolRewrite ) {
219
224
options . protocolRewrite = args . protocolRewrite ;
You can’t perform that action at this time.
0 commit comments