-
-
Notifications
You must be signed in to change notification settings - Fork 528
Spring Boot (Webflux) - Swagger UI - redirect URI does not include Gateway Prefix #2708
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 there, Please see minimum reproduceable example here: spring-projects/spring-boot#42317 |
I do not see any changes in the I confirm the behavior related to the handling of see the following commit 02215f1 that shows how to achieve it currently and let me know if it works. |
Hello, I am getting the same issue on all my Springboot 3.X projects, I allready set X-Forwarded-Host on my APIG, and server.forward-headers-strategy=framework in my projects. Does anyone get a solution ? |
…teway Prefix. Fixes springdoc#2708
My settings:
What happens:
My Swagger link works:
http://localhost:7080/bff/api/v1/resource/swagger-ui.html
But it forwards to:
location:
/api/v1/resource/webjars/swagger-ui/index.html
which goes to
http://localhost:7080/api/v1/resource/webjars/swagger-ui/index.html
(as it misses /bff, I keep getting back 404 Not Found)
I can see my BFF forwarding the right headers in the request to the Resource Server:
I've looked at the Spring Boot Swagger Code too
This seems to ignore any Gateway prefix that might be in X-Forwarded-Prefix enabled by forward-headers-strategy: native
This looks like a bug to me.
The text was updated successfully, but these errors were encountered: