Spring Data Rest - Proxy path not including link path

三世轮回 提交于 2019-12-05 09:22:18

You should have a look at the x-forwarded-*headers your proxy is adding to the request.

If the request from your proxy to the backend contains the header x-forwarded-prefix=/api/backend spring will pick up the prefix and add it to the generated link.

You do not mention which proxy are you using so I cannot tell if your proxy supports adding the x-forwarded-prefix header.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!