Skip to content
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

mapfishapp - chooses the wrong proxy #509

Closed
fvanderbiest opened this issue Dec 4, 2013 · 1 comment
Closed

mapfishapp - chooses the wrong proxy #509

fvanderbiest opened this issue Dec 4, 2013 · 1 comment
Assignees
Milestone

Comments

@fvanderbiest
Copy link
Member

There is a problem with this code in mapfishapp:
https://github.com/georchestra/georchestra/blob/master/mapfishapp/src/main/filtered-resources/WEB-INF/jsp/index.jsp#L133

Evaluating request.getContextPath() against "/mapfishapp" or "/mapfishapp-private" is not the correct way to check whether we're running under jetty or tomcat (the sec-proxy can live in a different tomcat).

The goal of this check is to choose the proxy for cross domain XHRs: either the security proxy when running under tomcat, or the local ogc proxy when running with jetty (dev mode).

@ghost ghost assigned fvanderbiest Dec 4, 2013
@fvanderbiest
Copy link
Member Author

One solution would be that the security proxy always adds a custom header to the forwarded request, eg: sec-proxy = true.

Mapfishapp would look for this header in the incoming request.
If present, it would use the sec-proxy.
If not, the local proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant