Describe the bug following up the discussion in https://github.com/spring-cloud/spring-cloud-gateway/issues/3636, it's not yet clear to me if it's an issue, if it's not, I do believe that the behavior should be toggled per route, but as I said in the original thread, I don't know yet which team it does belong to. To Reproduce
- after the gateway is up, open the browser and type
- http://localhost:8080/login
- the output will be spring security default login page, which is what I would expect.
- open another window in incognito mode
- go to http://dummy.traefik.me/login (magic DNS that points to 127.0.0.1, needed to reproduce host matching),
- the output will be spring security default login page, which is unexpected, because it should forward the call to httpbin.org as per route config.
Expected behavior if I go to localhost:8080/login, I expect to see spring security which is working properly. If i go to dummy.traefik.me/login, I would expect the requests being forwarded to httpbin.org.
Sample https://github.com/spring-cloud/spring-cloud-gateway/issues/3636#issuecomment-2534876547
Comment From: sjohnr
@joaquinjsb thank you for following up with an issue. I apologize that you spent time on opening this, but I have responded on the other issue with this comment and am going to close this with that explanation. If you have further questions, please ask on Stack Overflow and provide a link here and I'll be happy to take a look.