Skip to content

Commit

Permalink
Preserve host header and pass x-forwarded headers (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c authored Feb 20, 2024
1 parent f215192 commit 95c775c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ spring:
- org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
cloud:
gateway:
x-forwarded:
for-enabled: false
host-enabled: false
port-enabled: false
proto-enabled: false
prefix-enabled: false
enabled: true
global-filter.websocket-routing.enabled: true
metrics.enabled: true
Expand All @@ -52,6 +58,7 @@ spring:
- RemoveSecurityHeaders
# AddSecHeaders appends sec-* headers to proxied requests based on the currently authenticated user
- AddSecHeaders
- PreserveHostHeader
global-filter:
websocket-routing:
enabled: true
Expand Down

0 comments on commit 95c775c

Please sign in to comment.