Skip to content

Added support for X-Forwarded-Path header #431

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

Closed
wants to merge 1 commit into from

Conversation

thebignet
Copy link

Some proxies use URL rewriting, which means that requested URI and forwarded URI do not match. In such cases, URLs generated by ControllerLinkBuilder are incorrect.

The following issue suggest usage of a X-Forwarded-Path header which would hold the base path of the service.
18F/api.data.gov#260

The path method of the builder was used with the X-Forwarded-Path header value.

@thebignet
Copy link
Author

Discovered that it's actually a duplicate of #409, which is marked as unlikely. This behaviour is really missing in spring-hateoas and in the RFC and is due to URL rewriting.

@odrotbohm
Copy link
Member

Duplicates #409.

@odrotbohm odrotbohm closed this Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants