Skip to content

Commit

Permalink
fix incorrect pagination links in microservices when forwarded throug…
Browse files Browse the repository at this point in the history
…h gateway
  • Loading branch information
yhao3 committed Sep 28, 2024
1 parent af002a2 commit a149a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ spring:

server:
port: <%= serverPort %>
<%_ if (applicationTypeMonolith || applicationTypeGateway) { _%>
# make sure requests the proxy uri instead of the server one
forward-headers-strategy: native
<%_ } _%>

# ===================================================================
# JHipster specific properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ spring:
console-available: true

server:
<%_ if (applicationTypeMicroservice) { _%>
forward-headers-strategy: FRAMEWORK
<%_ } _%>
servlet:
session:
cookie:
Expand Down

0 comments on commit a149a3b

Please sign in to comment.