-
-
Notifications
You must be signed in to change notification settings - Fork 523
Utilize X-Forwarded Headers #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @aaron-hooper, The procy headers are natively supported by spring-boot. Please don't forget to give a feedback about which option resolved your issue. |
Setting When accessing the app directly without going through a proxy However when accessing via the reverse proxy |
Hi, You need to make sure you reverse proxy is also well configured:
Did you try with the Bean configuration? @Bean
ForwardedHeaderFilter forwardedHeaderFilter() {
return new ForwardedHeaderFilter();
} |
Is the |
Please support the X-Forwarded headers (x-forwarded-host, x-forwarded-prefix, x-forwarded-port, x-forwarded-proto) when they exist to allow the swagger docs to be properly served from behind a reverse proxy.
The text was updated successfully, but these errors were encountered: