-
Notifications
You must be signed in to change notification settings - Fork 41.1k
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
Spring Boot (Webflux) - Swagger UI - redirect URI does not include Gateway Prefix #42305
Comments
Spring Docs, which includes the |
I'm inclined to disagree, and feel this is more of a Spring Boot framework issue
|
Please don't create duplicates. Let's give the springdoc team some time to assess this and we can reconsider this as a Spring Framework issue later. |
Yes, agreed. I only posted there, after Wilkinson's comment.
|
As requested, I've added a minimum reproduceable example confirming the issue. Please see - #42317 |
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: